Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long command for column dynamic background
Message
 
 
To
04/02/2014 11:39:08
Rob Clapworthy
Bespoke Software Systems
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593139
Message ID:
01593148
Views:
94
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I have a long complicated set of different dynamic background conditions I need for one column in my grid.
>
>An ICASE won't cut it since the statement it is too long (>255),
>
>The following command works well in the INIT of the grid, but don't want this for all columns in the grid just some.
>
>
>thisform.grid1.SetAll("dynamicbackcolor","thisform.GetBackColor(alltrim(ctype))")
>
>I can't seem to work out what the syntax would be for one or more columns.
>
>Can anyone shed any light on this.
>
>TAI
>
>Rob

It will be exactly the same thing, e.g.
thisform.Grid1.column1.dynamicbackcolor = "thisform.GetBackColor(cType)"
You can do alltrim in the body of the method.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform