>lparameter tValue >local lnColor >do case > case tValue=x > lnColor=rgb(....) && Red > case tValue=y > lnColor=rgb(...) && Blue > etc... >endcase >return m.lnColorI'm being dense about something. When I try something like this:
*!* Temp.MyGetColor() LPARAMETERS tvValue DO CASE CASE tvValue = "31011 " ln = RGB(255,0,0) CASE tvValue = "31036 " ln = RGB(128,255,0) OTHERWISE ln = RGB(128,0,128) ENDCASE RETURN lnI get an error. The error depends how I've set the dynamicbackcolor property. However, neither way works. The indication it's an invalid value for the property. What am I doing wrong?
=thisform.GetMyColor(EVAL(this.controlsource))
, method executes as I expect but when it returns I get the error: Error loading file...DynamicBackColor: Data type is invalid for this property
thisform.GetMyColor(EVAL(this.controlsource))
I get Expression is invalid. Use a valid expression for DYNAMICBACKCOLOR property
and the method is not even called.