Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView and Checkboxes
Message
From
18/03/2003 08:43:53
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00766744
Message ID:
00766961
Views:
23
Hi Rick;

>When you use a listview with the checkboxes functionality, how can you loop through the checked items? I have tried walking all of the list items testing the Selected property, but that does not work, even when MultiSelect is turned on.

Here we go..
procedure mylistview.itemcheck
lparameters item
For i = 1 TO This.listitems.count
    If  item.index=This.listitems(i).index && if we don't want to use the actual choice
        Loop
    Endif
    If  This.listitems(i).checked
        This.listitems(i).checked=.f.
    Endif
    wait window "Searching.."+this.SelectedItem.text nowait && just to show the items
Endfor
endproc
HTH

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform