Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView in Report View Form
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00343109
Message ID:
00343118
Views:
28
>I have a listview with the following properties:
>Multiselect=.T.
>Checkboxes=.T.
>View=Report
>Columns=2
>
>I will that when i select more than one row in the list and click in a checkbox, all the checkboxes of the selected rows become mark. otherwise if are marked become unmarked.
>How can i reference to each row and ask if is selected and marked?
>This is the ListView control from MS.
>
>Regards,
>
>Francisko Paternoster

Francisko you should loop through your listbox items and check .Selected or .SelectedID property

FOR n =1 to myListbox.ListCount
IF myListbox.SelectedID(n) = .t.
* do something
ENDIF
ENDFOR

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform