Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setall method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00729337
Message ID:
00729343
Vues:
12
>Hi,
>
>>grid.setall("DynamicBackColor","iif(condition,KbgcolNormal,Kbgcolevid","column")
>
>you're having the compile time constants between quotation marks, so they are treated as string literals. Try this:
>
>
grid.setall("DynamicBackColor","iif(condition, " + KbgcolNormal + ", " + Kbgcolevid, "column")
>
>HTH,
>Armin
>
>
>>I have to dynamically change the backcolor in a grid
>>I usually do it by the method setall for example :
>>grid.setall("DynamicBackColor","iif(condition,rgb(192,192,192),rgb(255,0,0)","column")
>>
>>Today i was trying to get color from an include file but i get an error.
>>i wrote
>>grid.setall("DynamicBackColor","iif(condition,KbgcolNormal,Kbgcolevid","column")
>>
>>Can I use constant or variable inside the setall method and if so
>>where is the mistake ?
>>
>>Thanks
>>Alessio

Thank you, i was thinking the same thing just a moment ago.
Thank you again
Alessio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform