Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#Define variable not recognized in DynamicBackColor
Message
From
27/11/2004 17:57:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/11/2004 17:41:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00965154
Message ID:
00965156
Views:
10
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform