>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