General information
Category:
Forms & Form designer
>>>Could someone tell me how to use a character value with this statement:
>>>
>>>thisform.Grid1.SetAll("DynamicBackColor", ;
>>> "IIF thisform.grid1.ctime.combo1.value=1300, RGB(255,255,255) ;
>>> , RGB(0,255,0))", "Column") && Alternate white and green records
>>>
>>>The value is actually character "1300", but putting in quotes obviously causes an error (quotes within quotes). How do I put quotes in?
>>
>>try this
>>"IIF thisform.grid1.ctime.combo1.value='1300', RGB(255,255,255) ;
>> , RGB(0,255,0))", "Column") && Alternate white and green records
>>
>>HTH
>>Jeff
>
>Ya'll are both leaving out the open parentheses required for an implicit if...
Erik, Jeff:
I tried...
thisform.Grid1.SetAll("DynamicBackColor", ;
"IIF thisform.grid1.ctime.combo1.value='0800', RGB(255,255,255) ;
, RGB(0,255,0))", "Column")
I get no errors, but it simply does not change the colour of any grid lines. Where should I put the brackets Erik? This code is copied out of the VFP help from an example that changes every second line to green.
Any other ideas why this might not work?
Previous
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