Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid headers
Message
From
09/11/2005 08:24:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/11/2005 08:18:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066723
Message ID:
01066736
Views:
21
>OK
>I entered the following code in the grid init:
>
this.SetAll("dynamicbackcolor","iif(left(crgel.Value,1)='S',rgb(125,252,145),rgb(255,255,255))")
>I got a message 'expression is invalid for dynamic backcolor property'!
>What can I do?

The expression seems to be valid 'syntactically'. However does crgel.value evaluate to a string? IOW what does happen if you put in init (comment your setall()):

select (this.recordsource)
messagebox(crgel.value)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform