Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 to VFP9, .null. value instead of 0
Message
 
 
To
17/08/2006 21:54:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01146621
Message ID:
01146624
Views:
21
>In VFP6, following command shows 0 but in VFP9 it show .null.
>How to get 0 in text11 instead of .null. value.
>
>Please help
>
>SELECT AVLBOOK
>INDEX ON GATE_NO TO AVLBOOK1
>SELECT MAX(GATE_NO) AS MAX_GATE_NO FROM AVLBOOK INTO CURSOR V
>THISFORM.TEXT11.VALUE = MAX_GATE_NO
>
I'm not sure the NULL has anything to do with going from 6 to 9. IAC, you can do this...

THISFORM.TEXT11.VALUE = NVL(MAX_GATE_NO, 0)
Del
Previous
Reply
Map
View

Click here to load this message in the networking platform