Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement