Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Expression?
Message
From
16/05/2001 17:35:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508032
Message ID:
00508129
Views:
25
>What makes this an invalid expression?
>
>This.SetAll('DynamicBackColor', 'IIF(checknum = 0, RGB(255,0,0), IIF(amount > 500, RGB(255,0,255), RGB(255,255,255)))', 'column')
>
>How should I set the backcolor to two colors based on two different conditions?

Comparing it to this example from a help screen
Form1.Grid1.SetAll("BackColor", RGB(255, 0, 0), "Column")
I don't think your second arguement is supposed to be character.
This.SetAll('DynamicBackColor', IIF(checknum = 0, RGB(255,0,0), IIF(amount > 500, RGB(255,0,255), RGB(255,255,255))), 'column')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform