Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server ODBC Error - NULL coming back as None
Message
From
08/06/2005 11:11:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/06/2005 11:09:34
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01021397
Message ID:
01021398
Views:
17
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>I am getting a bit of a strange error/problem/issue. A recordset is being returned by a SQL sever stored procedure. In the SQL database, the values of a number of the columns are NULL. However, after the SQLEXEC() call, the created cursor displays these NULL values as None. If it is a character field, the value is Left Justified, if it is a numeric field, the value None is right justified.
>
>Any ideas what is going on and how to fix it so that Fox displays NULL ?
>
>Many thanks,
>
>-=Gary

Check SET NULLDISPLAY - perhaps some tool is playing with this value. You can make NULL values display as whatever you like; for example, I show "???" in my applications. Note that to a non-programmer, this might be clearer than ".NULL.".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform