Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF() Test.
Message
From
24/04/2000 11:26:15
 
 
To
24/04/2000 10:39:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00362743
Message ID:
00362769
Views:
19
>I have a complex iif() line in the dynamicforecolour property from a grid.
>The iif() command is not working.
>But i do not recieve an error and i cant find the error in the line.
>How can i test where i make an error.
>Thanks.

Remove all embedded spaces from the expression.

FWIW, in situations where I have a complex set of criteria in a Dynamic.. property, I usually create a form method that returns a value, and set the dynamic property to the name of that method:

Grid.Column1.DynamicForeColor = "THISFORM.ChooseColor()"

That way, you can put as much logic as you want, and the expression is easier to debug.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform