Page 1 of 1

ComboBox Refresh

PostPosted: Tue Oct 11, 2005 10:19 pm
by Gilbert Vaillancourt
Hi All,

How can I refresh the display and list of a combobox once it`s content has changed ? :?

Regards,


Gilbert

Re: ComboBox Refresh

PostPosted: Wed Oct 12, 2005 1:40 am
by DanielPuente
Gilbert:

oCombo:SetItems(aItems)
oCombo:Refresh()

If necessary:

oCombo:Reset()


Regards,

Gilbert Vaillancourt wrote:Hi All,

How can I refresh the display and list of a combobox once it`s content has changed ? :?

Regards,


Gilbert

PostPosted: Wed Oct 12, 2005 1:41 am
by Ray Islas
Hi

Sorry for my english ;)

REDEFINE COMBOBOX oCmbX VAR cVarX ID 119 OF oFold:aDialogs[1] ITEMS aDtsX

In a new array you put the new values, then write this :

oCmbX:SetItems( aNewArr )
oCmbX:Refresh()

and that's it !!!


It works for me.

Thanks

PostPosted: Wed Oct 12, 2005 3:04 am
by Gilbert Vaillancourt
Hi,

Thanks Guys :D

Regards,

Gilbert

[/u]