Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird behaviour of Grid.ColumnX.Dynamic... properties
Message
 
To
05/11/1997 15:02:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00058453
Message ID:
00058458
Views:
33
>>That can be interesting:
>>
>>This works:
>>
>>this.column1.DynamicForeColor = "IIF(some_type = 2, RGB(255,0,0), RGB(0,0,0))"
>>
>>And this does not work:
>>
>>this.column1.DynamicForeColor = "IIF(some_type = 2, RGB(255,0,0), RGB(0,0,0)) "
>>
>>Reason: one extra space before closing quotes.
>>No error messages.
>>:)
>>
>>Nick
>
>Yes, I just got the same. It might be VFP tip: use This.ColumnX.DynamicForeColor=ALLTRIM(This.ColumnX.DynamicForeColor)

I think we will put it into FAQ, because it is really hard to understand what's the reason.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform