Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If Empty(x) Returns .F. If X = .NULL.
Message
From
05/12/2003 00:57:37
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00856160
Message ID:
00856162
Views:
16
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform