Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Nulls and IIF Not working in DBC VFP6/SP4
Message
From
04/08/2000 17:23:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00401381
Message ID:
00401406
Views:
19
> logically_deleted_yn= ;
> IIF(INLIST(logically_deleted_yn,"Y","N"),;
> logically_deleted_yn,.NULL.)

Steve,

Trey's answer to you is correct...

Your expression looks like an attempt to assign a value to logically_deleted_yn. No assignment is made in this expression; the total expression is evaluated.

Your expression will always evaluate to TRUE or NULL (never FALSE). It will evaluate to TRUE when logically_deleted = "Y" or "N", and to .NULL. in all other cases. The RI mechanism has been written to FAIL only on FALSE (as opposed to PASS only on TRUE).

For a discussion on this, see thread #398289, where George talks about this apparent weirdness.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform