General information
Category:
Coding, syntax & commands
Title:
Cant get Nested IIF to work in Grid Init
I am trying to set dynamic background color of Grid Rows:
For each loColumn in This.Columns
With m.loColumn
.DynamicBackColor = "Iif(Mem.Mem_Status='SUP',RGB(255,0,0),;
IIf(Recno() <> This.inCurrentRecNo,RGB(255,255,255),RGB(0,255,0))"
EndWith
EndFor
The above code seems to do nothing but following code works ok:
For each loColumn in This.Columns
With m.loColumn
.DynamicBackColor = "Iif(Mem.Mem_Status='SUP',RGB(255,0,0),Rgb255,255,255) )"
EndWith
EndFor
I wonder is there some problem running nested IIF's
Regards,
Gerard
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only