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.