Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid color
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01168412
Message ID:
01168414
Views:
11
>Hi
>Why do I get the expression invalid error message?
>
cgship=substr(othernr.shipmentid,3,3)
>
>thisform.grdnrother.shipment.dynamicbackcolor= [IIF(alltrim(cgship)='G',rgb(255,0,0),RGB(255,255,255))]
the .DynamicBackColor is evaluated at each row as its being displayed, and not at the time you set the property... you would have to include the whole thing as...
thisform.grdnrother.shipment.dynamicbackcolor= ;
    [IIF(alltrim(substr(othernr.shipmentid,3,3))='G',rgb(255,0,0),RGB(255,255,255))]
Previous
Reply
Map
View

Click here to load this message in the networking platform