Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
These two lines are the same..right?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01555138
Message ID:
01555147
Vues:
74
>>These two lines do the same thing..right?
>>
>>
>>IF !(lcBillTypeDigit1 $ oApp.gsOutBilT1 ) OR !(lcBillTypeDigit2 $ oApp.gsOutBilT2)
>>
>>IF NOT ((lcBillTypeDigit1 $ oApp.gsOutBilT1 ) AND (lcBillTypeDigit2 $ oApp.gsOutBilT2))
>>
>>
>>Thanks!
>
>A is false or B is false
>is the same as
> One or more of A and B is not true

Exactly. Took me a few minutes but I finally was able to explain that to someone here. Personally I like doing it the 2nd way because to me that looks easier to read. NOT() or NOT() seems not as good as not( () and () ). Not that it matters..ha
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform