Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return integer from NVL()
Message
 
 
To
17/06/2004 17:23:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00914820
Message ID:
00914835
Views:
13
In VFP9
NVL(myfield, CAST(0 AS int))
* or
CAST(NVL(myfield, 0) AS int)
In VFP8 and earlier it isn't possible but you can create numeric field with enough size by specifying according number of zeros.
NVL(myfield, 0000000)
>How do you get NVL() to return an integer if value is null?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform