>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