>>>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?
>>
>>this.selected(n)=.t.
>>
>>n would be the row number of the line you want. You can have several of these for each row you want.
>
>In the Init I do a setfocus to the listbox. Then in the gotfocus of the listbox I have this.selected(n)=.t. statement with a record number property as n. And it still doesn't work. I will keep playing with it.
Worked for me, but I did it in the .init, not .gotfocus; it probably needs an additional refresh if called from there.