Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to test for a disabled list item?
Message
De
24/12/2003 07:47:29
 
 
À
24/12/2003 03:29:16
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00861858
Message ID:
00861893
Vues:
18
>I created a listbox and populated it with values via the AddItem method. When an item it picked I disable it by adding a backslash to the item value....
>
>this.List1.ListItem(i)='\'+this.List1.ListItem(i)
>
>The strange thing is once I add a backslash, it disables the item OK but backslash is no longer there. In fact, to re-enable it I just issue....
>
>this.List1.ListItem(i) = this.List1.ListItem(i)
>
>on the previously disabled item.
>
>Now I need to know which items have been disabled.
>
>Any suggestions?
>
Hi Larry;

For selected, here is some sample:
with thisform.list1
    for i = 1 to .listcount
         if  .selected(i)
             *here we go
         endif
    endfor
endwith
For disabled.. The deal, is to use the source of your data to make the control..

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