Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox little problem
Message
De
09/11/2001 10:24:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00579643
Message ID:
00579650
Vues:
39
>Hi everybody,
>
>I've added Selected All feature for my multiselect listbox (by button and by Ctrl+A). Now, when I click on item in ListBox with all items selected, it selects only this item and deselect all others. It's not the same behavior in WE, where it's exactly oposite. So, I'd like click on ListBox to behave this way: if this item is selected, it should deselect it. How can I make this? I'm a little bit confused, which ListBox property I need to use.
>
>Thanks in advance.

You want to toggle all values to the opposite?
with thisForm.list1
    for i = 1 to .listcount
       .selected(i) = !(.selected(i))  && or set to .t. for all on
                                       && or set to .f. for all off
    next i
endwith
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform