Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamicbackcolor Setting
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01102673
Message ID:
01102675
Views:
18
>hi
>i have a grid which shows data with different conditions. i want to have different colors for each condition.
>i have used thisform.mygrid.setall("Dynamicbackcolor",iif(condition1,rgb(x,y,z),condition2.....,"column")
>but the problem is my iif() conditions length goes beyond 255 chracters and as a result it gives error.
>i tried using a prg where i declared a string variable and assigned it the value as the full iif() condition and returned that variable, but still it gives an error.
>
>thisform.mygrid.setall("Dynamicbackcolor",myprg(),"column")
>
>proc myprg
>a = iif(condition1,rgb(x,y,z),iif(condition2....
>return a
>
>even this is not working
>
>pls help me out
>
>thanx
>Riyaz Patanwala
thisform.mygrid.setall("Dynamicbackcolor",[myprg()],"column") && Must be string expression
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform