Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL
Message
From
25/08/1999 14:46:48
 
 
To
25/08/1999 14:41:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: NULL
Miscellaneous
Thread ID:
00257266
Message ID:
00257578
Views:
22
>Not sure if this is what you want but if you are trying to display a 0 when the numeric is null you might try something like this.
>declare variables
>test = ''
>OR
>test = 0
>
>retval = iif(empty(test)and type('test') = 'C',".NULL.",NVL(test,0))
>
>?retval

No, we had someone who wanted to substitute NULL for an empty value, and then discovered that for numerics, 0 is empty, but not null.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform