Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and different data types in same column
Message
From
02/03/2000 17:44:45
 
 
To
02/03/2000 17:34:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00340889
Message ID:
00340891
Views:
18
>Is it possible to do an IIF in a column to display a char value like 'n/a' if the value is 0?

>I have a column based on a cursor and the data is numeric. If the value is 0 I want to display 'n/a'...

I don't think so. You can however use char and convert the numeric to char with a str() function.

i.e. SELECT IIF(myfield>0,STR(myfield,X,X),"N/A") as myfield... etc...
HI-YO SILVER AWAY!!
The Lone Ranger, The late Clayton Moore R.I.P.
I am a fool!
Previous
Reply
Map
View

Click here to load this message in the networking platform