Hi every body
Iam trying to set back color of the records in a grid based on customer balance, Iam using the following code
but it produces the error 'Unrecognized command verb'
DODEFAULT()
WITH THIS
.SetAll("DynamicBackColor", ;
"IIF(BALANCE<0, RGB(255,170,213), ;
IIF(BALANCE=0, RGB(255,255,255), ;
IIF(BETWEEN(BALANCE1,500), RGB(255,255,168), ;
IIF(BETWEEN(BALANCE,501,1000), RGB(210,210,210), ;
IIF(BETWEEN(BALANCE,1001,3000), RGB(201,255,144), ;
IIF(BALANCE>3000, RGB(136,196,255), ;
RGB(255,255,255))))))))","COLUMN"
ENDWITH
Please let me know what is wrong with it
Thanks in advance
Iam trying to set back color of the records in a grid based on customer balance, Iam using the following code
but it produces the error 'Unrecognized command verb'
DODEFAULT()
WITH THIS
.SetAll("DynamicBackColor", ;
"IIF(BALANCE<0, RGB(255,170,213), ;
IIF(BALANCE=0, RGB(255,255,255), ;
IIF(BETWEEN(BALANCE1,500), RGB(255,255,168), ;
IIF(BETWEEN(BALANCE,501,1000), RGB(210,210,210), ;
IIF(BETWEEN(BALANCE,1001,3000), RGB(201,255,144), ;
IIF(BALANCE>3000, RGB(136,196,255), ;
RGB(255,255,255))))))))","COLUMN"
ENDWITH
Please let me know what is wrong with it
Thanks in advance