Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid textbox color in red if !empty(memo)
Message
From
29/09/2000 12:56:40
 
 
To
29/09/2000 11:44:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00422619
Message ID:
00422680
Views:
10
>In your select that you use as the record source for your grid, add the following to your select:
>
>iif(!empty(memofieldname),00000255,16777215) as rowcolor
>
>Then, in each column of your grid, set dynamicBackColor = yourCursorName.rowcolor.
>FYI 255 is what getcolor() returns for red, and 16777215 is white.
>
>That does the trick for me.

So why not just use RGB() function and specify:

RGB(255,0,0) for Red
RGB(255,255,255) for White
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform