Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Forecolor In Combobox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009169
Message ID:
01009245
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Sorry, one question though. After using that code, it works fine, but how can I "test" to see if an item is disabled? I tried to use:
>
>
IF LEFT(Object.List(Index), 1) == "\"
>
>Unfortunatly the value of the item always says is doesn't have a preceeding "\" even if it does.

You can use ItemData array propery to mark disabled items.
PROCEDURE cbolistitem.Init
  WITH This
   .AddItem( 'Apple' )
   .AddItem( 'Banana' )
   .AddItem( '\Carrot' )
   .ItemData(.NewIndex) = 1
   .AddItem( 'Orange' )
  ENDWITH
 ENDPROC
....
IF Object.ItemData(Index) = 1
...
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform