Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long command for column dynamic background
Message
 
 
To
04/02/2014 13:22:44
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:
01593166
Views:
40
>Hi Naomi
>
>My code for the setbackgroundcolor
>
>
>LPARAMETERS mtwup1,cmat_type,mzedit
>
>cmat_type=ALLTRIM(cmat_type)
>
>DO CASE 
> CASE EMPTY(mtwup1) and !medit
>  mcolour=rgb(224,224,218)
> CASE !EMPTY(mtwup1) and cmat_type="Dry"
>  mcolour=RGB(0,255,0)
> CASE !EMPTY(mtwup1) and cmat_type="Blend"
>  mcolour=RGB(255,255,255)
> CASE !EMPTY(mtwup1) and cmat_type="UV"
>  mcolour=RGB(255,100,0)
> OTHERWISE
>  mcolour=rgb(80,80,80)
>ENDCASE
>
>RETURN mcolour
>
>  * 1) Grey for empty field
>  * 2) Green for full not blend
>  * 3) Brown for full Blend
>  * 4) Blue for UV
>
>
>
>Getting the error "Data type is invalid for this property" when I call from the grids Init Method:
>
>thisform.rxpageframe1.page1.grdWip.COLUMN8.dynamicbackcolor=thisform.setbackgroundcolor(wipdata.wup1,wipdata.mat_type,medit)

Rob answered your question and if you look closer at my answer you'll notice I used double quotes as well.
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