Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty()
Message
From
07/10/2004 15:59:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00949698
Message ID:
00949700
Views:
12
Glancing at the title of this thread I'm guessing he knows the Empty() function.

I think what he's asking is how to set up this rule in the database. The answer is not to use a field rule, but a table rule.

Use the table, Modify Structure, and on the 3rd tab of the Table Designer there is a "record validation." You can put your rule here:

iif(empty(field1), empty(field2), .T.)

Which could also be written as:

not empty(field1) or empty(field2)

That might be wrong, play with it and you'll get it right.

>You can use EMPTY() function.
>
>>How to check if field1 is empty, field2 should be empty too ?
>>
>>mytable.dbf
>>
>>field1 field2
>>aaaaaa bbbbbb
>>
>>empty empty ,too
>>
>>cccccc ddddd
>>
>>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform