Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi Select List Box
Message
 
 
To
13/08/1998 21:29:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00126433
Message ID:
00126873
Views:
29
Dan,

I just created a form with this code:
*Load()
dimension this.maList[50]

for i = 1 to 50
   this.maList[i] = "test" + str(i) && yellow
endfor

*Click()
for i = 1 to 50 step 2
   this.list1.Selected[i] = .t.
endfor

* these properties
RowSourceType = 5
RowSource = "thisform.maList"
Height = 170
Left = 17
MultiSelect = .T.
Top = 38
Width = 100
Name = "List1"
When I click the form the items multiselect. I can then continue to Ctrl-Click other items to select them as well.

>This did not help. Actually, I have a combo box on the form. In the InterAcitveChange event of the combo box, I select items in the list box. When going to the list box to override the selections, by CTRL-Clicking on other items, the items selected by code are de-selected.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform