Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect in Listbox
Message
From
08/11/1997 09:55:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00058541
Message ID:
00059074
Views:
27
>>nSelected = 0 >>FOR x = 1 TO This.ListCount >> IF This.Selected(x) >> nSelected = nSelected + 1 >> ENDIF >>NEXT >> >>*-- Shows the number of selected records to the user >>Thisform.SelectedNo.Caption = STR(nSelected) > >Thanks, Benn, that would do it, of course. I should have put in the >previous message that I was trying to avoid this method, because I often >have 5000 records, and doing this loop each click would be abominably slow. Er... how about remembering the position of last clicked row, and calculating for distance if shift-clicked or just adding or taking one for ctrl+click... no, it wouldn't give you a correct count, in case some of the rows in the range were ctrl+click selected before shif+click. Tricky one, isn't it?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform