Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And/or statement
Message
De
02/04/2001 19:05:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491010
Message ID:
00491126
Vues:
9
yes, this is one of those cases where things *seem* to be counter-intuitive. Not so, really, if you look harder at it.
But my preference is to always use the positive if at all possible, just to make it clearer for me and those who follow. So I would have coded:
IF MOFFICE ='SN'
OR MOFFICE ='VS'
ELSE
error msg here
ENDIF

More typing but easier all around, in my humble opinion.

Cheers

JimN

>I was going to implement "IF MOFFICE <> 'SN' OR MOFFICE <> 'VS'" but I had to resort to "IF MOFFICE <> 'SN' AND MOFFICE <> 'VS'". The idea is to only allow entry of SN or VS, thus my reason for attempting to use OR instead of AND.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform