Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to judge the value in one fieds is only?
Message
From
17/05/2002 10:07:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/05/2002 10:04:21
Michale Chen
Shijiazhuang ZhiYuan Crop.
Shijiazhuang, China
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00658167
Message ID:
00658169
Views:
19
>Hello everyone:
>How to judge the value in one fieds is only?

If you mean that you want to have a value in one field, or in the other, but not in both, check for:
empty(Field1) # empty(Field2)
# is equivalent to the XOR (exclusive-or) operator (missing in VFP), but you have to be careful with order-of-precedence.

HTH, Hilmar.
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
Next
Reply
Map
View

Click here to load this message in the networking platform