Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculated expresion in Grid column Control Source too l
Message
From
27/11/2001 12:05:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
26/11/2001 21:07:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586115
Message ID:
00586415
Views:
30
Dejan,
If you set your controlsource in code (in grid init for example), then you don't have the limit. And since your options are sequential alternatively you could add a one dimensional array to form and fill your status strings. Then calculated column expression would be :

(thisform.myArray[val(mytable.status_no)])
Cetin

>Hi All,
>
>I am trying to put Calculated Expresion in Grid Column Control Source but it
>is too long.
>i.e.
>iif(job_status_2='0','Dispatched',iif(job_status_2='1','Accepted',iif(job_st
>atus_2='2','Rejected',iif(job_status_2='3','Attended',iif(job_status_2='4','
>Commenced',iif(job_status_2='5','Work
>Suspended',iif(job_status_2='6','Recommenced',iif(job_status_2='7','Complete
>d',iif(job_status_2='8','Created',iif(job_status_2='9','Waiting for
>Dispatch',''))))))))))
>
>I want to display to user Description instead of value 0,1,2,3 etc...
>
>Is there any other way to do what i want to achive?
>
>Regards
>
>Dejan
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform