Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled combobox items
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Disabled combobox items
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01358375
Message ID:
01358375
Vues:
53
I have a combobox that where I need to show some of the items disabled. If there is only one column, it works fine. If I have multiple columns, it doesn't disable the item.

Here's some sample code - drop a combo on a form and add this to the Init() of the combo:
FOR lnIndex = 1 TO 10
    lcItem = SYS(2015)
    IF MOD(lnIndex, 2) = 0
       lcItem = "\" + lcItem
    ENDIF
    
    This.AddListItem(lcItem)
    * Uncomment this line to see the issue.
    *This.AddListItem(TRANSFORM(lnIndex), This.NewIndex, 2)
ENDFOR
What am I missing?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform