Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6: MultiSelect in Listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00573919
Message ID:
00574479
Views:
24
>>>>>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?

I think, I misled you. The correct syntax is this.selected[i]=.t.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform