Hello,
I am trying to use 6 IIF commands in SetAll method.
It looks like this:
thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(orderCursor.term='PRE', rgb(128,128,128),;
IIF(orderCursor.term='PEN', RGB(255,128,64),;
IIF(orderCursor.term='PEI', rgb(0,0,255),;
IIF(orderCursor.term='PRO', rgb(255,0,255),;
IIF(orderCursor.salesmat=1, RGB(0,0,0),;
IIF(orderCursor.onhold=.t., RGB(255,0,0),RGB
(255,255,255)))))))","Column"
But I always get a message that there is a syntax error.
I tried a few possibilities and here is what I discovered:
If I am using only 5 IIF commands and "6" closed parenthesis, code is correct, otherwise I get an error. The question: why "6" parenthesis when I use only 5 IIF commands
This code apsolutly does not work with 6 IIF commands.
Any ideas what could cause the problem?
Thanks
Mensud
I am trying to use 6 IIF commands in SetAll method.
It looks like this:
thisform.grid1.SetAll("dynamicbackcolor", ;
"IIF(orderCursor.term='PRE', rgb(128,128,128),;
IIF(orderCursor.term='PEN', RGB(255,128,64),;
IIF(orderCursor.term='PEI', rgb(0,0,255),;
IIF(orderCursor.term='PRO', rgb(255,0,255),;
IIF(orderCursor.salesmat=1, RGB(0,0,0),;
IIF(orderCursor.onhold=.t., RGB(255,0,0),RGB
(255,255,255)))))))","Column"
But I always get a message that there is a syntax error.
I tried a few possibilities and here is what I discovered:
If I am using only 5 IIF commands and "6" closed parenthesis, code is correct, otherwise I get an error. The question: why "6" parenthesis when I use only 5 IIF commands
This code apsolutly does not work with 6 IIF commands.
Any ideas what could cause the problem?
Thanks
Mensud