Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatic selection of listbox items
Message
From
31/10/1997 13:11:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Programmatic selection of listbox items
Miscellaneous
Thread ID:
00057634
Message ID:
00057634
Views:
107
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.
Next
Reply
Map
View

Click here to load this message in the networking platform