Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Nulls and IIF Not working in DBC VFP6/SP4
Message
De
04/08/2000 17:23:22
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00401381
Message ID:
00401406
Vues:
20
> 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform