Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView and Checkboxes
Message
De
18/03/2003 08:43:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00766744
Message ID:
00766961
Vues:
22
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform