Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If Empty(x) Returns .F. If X = .NULL.
Message
De
05/12/2003 00:57:37
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00856160
Message ID:
00856162
Vues:
17
Hi Russel,

there is not a real setting on that.
All what you can do is to change your code like
IF EMPTY(X) OR ISNULL(X)
*or
IF EMPTY(NVL(X,.F.)) &&you might replace .F. with anything else that is empty
HTH
Agnes

Update:

you may retrive your data from the SQL source using NVL() as well

Agnes
>In a VFP app, I have used IF EMPTY(X) in several places and have not allowed .NULL. values.
>
>I have now migrated it to SQL Server. When I SELECT the data from the SQL Server Table containing a .NULL., the .NULL. gets replcated in the DBF.
>However since IF EMPTY(X) = .F. when X = .NULL., I am in trouble.
>
>Is there a simple setting/solution to overcome this problem?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform