Information générale
Catégorie:
Codage, syntaxe et commandes
THISFORM.lstItems.Clear()
SELE Table
SET ORDER TO SortOrder
SCAN
THISFORM.lstItems.AddItem(Table.Descript)
ENDSCAN
>What's the best way to clear a listbox?
>
>and
>
>What's the best way to relist items in a listbox that come from a table using scan...endscan? I thought by setting my counter (index) to 1 the list would start over at the top of the listbox each time through the scan...endscan. Instead, it appends (repeats) the same info within the listbox. I suspect my counter is not getting reset, but I am not quite sure if that's the cause.
>
>Thanks for the help.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement