Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable combo items
Message
De
07/03/2007 13:55:31
 
 
À
07/03/2007 13:53:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01201695
Message ID:
01201698
Vues:
11
>How do you disable an individual item in a drop down combo? (make it visible but not available for selection)
>
>Suppose I wanted to step through all the items in the combo and disable those that contain "19" in them.
>Something like:
>
>for i = 1 to this.NumberofElements
>   if "19" $ this.listItem(i)
>         && disable it
>   endif
>next
>
>Thanks

You can only do this if the combo "owns" the items, that is, with RowSourceType = 0, 1 or 5. To disable an item, add a backslash in front of it.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform