Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Initially select all items in listbox.
Well, just shot a whole day attempting what seems to be a simple problem.
Have a list box control with a SQL Select for the data in the control.
I want to be able to have ALL items in the listbox inititally selected when the form is instantiated.
I put code in the init event of the listbox
FOR m.i = 1 TO THIS.Listcount
THIS.Selected(m.i) = .T.
ENDFOR
and I can step through it and see the rows get selected but when the form is activated all of the selection disappears.
thanks, kim
Suivant
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