Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#Define variable not recognized in DynamicBackColor
Message
From
27/11/2004 18:34:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
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:
00965161
Views:
11
>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

1) You've a typo in your expression
2) clr_Black is in a string and shouldn't expand with #define
Try this:
MessageBox("clr_Black")
WITH myColumn
 .DYNAMICFORECOLOR='(IIF(sortkey="A",'+Transform(clr_Black)+','+STR(.BACKCOLOR)+'))'
ENDWITH
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform