Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple IIFs in Grid Column Control Source
Message
From
20/10/2002 19:15:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Multiple IIFs in Grid Column Control Source
Miscellaneous
Thread ID:
00713357
Message ID:
00713357
Views:
49
In a Grid I have 1 column which I would like to display the contents of a field "status" from table "events" as following:

If status=1
display 'OK'
If status=2
display 'Cancelled'
If status=3
display 'Did Not Attend'
etc etc

In the control source of the column I have entered:

iif(events.status=1,"OK," "), iif (events.status=2,"Cancelled"," "), iif(events.status=3,"Did Not Attend," ")

but I get an error message "The Data Source for This Object must be a Variable Object"

What am I doing wrong?
Next
Reply
Map
View

Click here to load this message in the networking platform