Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Urgent Crystal Question!!!
Message
From
05/02/2002 12:31:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00615555
Message ID:
00615585
Views:
15
>One thing I would try to check for the NULL value while comparing....In VFP, "Variable > NULL" returns False....

To be accurate, it returns NULL, not .F. However, in a loop like
if (expression that evaluates to NULL)
  ...
the ELSE will be taken.

An example of why this distinction might be relevant:

The following will print "No":
if NULL
  ? "Yes"
else
  ? "No"
endif
But the following, which you might expect to do the opposite, will also print "No":
if not NULL
  ? "Yes"
else
  ? "No"
endif
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