Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatic selection of listbox items
Message
De
31/10/1997 13:11:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Programmatic selection of listbox items
Divers
Thread ID:
00057634
Message ID:
00057634
Vues:
112
I am having difficulty programmatically setting listbox items as selected on entry to a form. Rowsourcetype is 0-None, items are added using AddItem().

I have tried selecting the "pre-selected" items in the form init and form show unsuccessfully. Watching in the debugger, even tho I set the selected property to .T., the items refuse to be selected.

Using some workarounds I was able to get the items to be selected while watching the code execute in the debugger, but when I removed the SET STEP ON command ( the only change I made ), the items refused to be selected.

One button on the form selects all items programmatically, another deselects all programmatically. These work fine!?!?

Is this a bug ( feature?? :-) ) or am I missing something here?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform