>>>>>>I have a listbox that worked just fine. Then I changed it to be Multiselect
>>>>>>and now when I go into the form the item is not completely selected. There
>>>>>>is an outline of the current record but I want it be selected. Isn't there
>>>>>>some property that needs to be set?
>>>>>>TIA!
>>>>>
>>>>>How many items do you have in this listbox?
>>>>
>>>>More than 1 and less than 10 so far.
>>>
>>>That's ok then :) What exactly do you want to do? If you want some item to be selected, just set list[i].selected = .t. for those i, you want to be selected.
>>
>>Well, Dragan suggested:
>>this.selected(thisform.nrecno)=.t.
>>
>>and I tried this in the GotFocus of the listbox and I get an error:
>>this.list[thisform.nrecno)].selected = .t.
>>
>>This should not be that hard! Any other ideas?
>
>What is thisform.nRecno? Also I would not do it in ListBox.GotFocus. Just do it as the last operation in Form Init.
I gave up trying to programatically selecting the record. It just didn't work. The only time I needed the listbox to be in multiselect was when the user clicks on a button to select all the records. Otherwise the listbox did not need to be in multiselect mode. This works!
Thanks for the feedback!