Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
These two lines are the same..right?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01555138
Message ID:
01555147
Views:
76
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform