Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And/or statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491010
Message ID:
00491021
Vues:
9
Statement (.f. or .t.) returns .t., but statement (.f. and .t.) returns .f.

Let us suppose MOFFICE = 'SN'. Then (MOFFICE <> 'SN' OR MOFFICE <> 'VS' return .t. because the second part, MOFFICE <> 'VS', is .t.

Hope this help

>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