Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#Define variable not recognized in DynamicBackColor
Message
De
27/11/2004 17:57:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/11/2004 17:41:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00965154
Message ID:
00965156
Vues:
9
>I have a statement that looks like this:
>
WITH myColumn
>    .DYNAMICFORECOLOR='IIF(sortkey="A",clr_Black,'+STR(.BACKCOLOR)+')
>ENDWITH
>
>clr_Back is defined in a #DEFINE statement in a header file set in _INCLUDE and exists at the point of the reference to .DYNAMICBACKCOLOR ... what am I missing?
>
>Thanks

I would suspect the problem is not related to the .DynamicForeColor, but to the #DEFINE.

You can test this by giving any other command that involves the defined constant. For instance:
MessageBox(trans(clr_Black))
Check the include file for the class (Class | Include or so). Note that the _include variable will only affect classes created after you define this variable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform