Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox selection problem
Message
From
11/01/2002 03:44:03
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, South Africa
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ListBox selection problem
Miscellaneous
Thread ID:
00603373
Message ID:
00603373
Views:
44
Hi All

Can anyone please help with this problem.
I have a list box which gets populated from a choice from a combo box.

E.g I choose location "R0001" from the combo box and the list box gets populated with all assets in that location. When I go to the list box, click
on the first record, then go to the last record , hold down the shift key and then click on the last record, it shows that it has selected all. But when i run the code to update these record it only takes the first record and the last record. I have the following code in my InteractiveChange event of the list box.

nNumberSelected = 0
FOR nCnt = 1 to thisform.List1.ListCount
IF Thisform.List1.Selected(nCnt)
nNumberSelected = nNumberSelected + 1
replace txfer with .T.
ENDIF
ENDFOR
Thisform.txtNoSelected.Value = nNumberSelected

Thanks in advance
Fida
Wannabe FoxPert!!!
Next
Reply
Map
View

Click here to load this message in the networking platform