Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server ODBC Error - NULL coming back as None
Message
De
08/06/2005 11:11:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/06/2005 11:09:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01021397
Message ID:
01021398
Vues:
18
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform