Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculated expresion in Grid column Control Source too l
Message
 
 
À
26/11/2001 21:07:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586115
Message ID:
00586122
Vues:
28
You can create new table 'jobdesc' with two fields: job_stat C(1) and job_desc C(30) with index on job_stat. After that put following in the column controlsource
(iif(seek(grdAlias.job_status_2, "jobdesc", "job_stat"), jobdesc.job_desc,"Unknown"))
>
>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
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform