You could not be more correct. You wrote NOT and I translated that in my head 
to the exclamation point. (My C is showing.)

And yes, absolutely, as you say, the problem is the merging of logical not and 
XOR operations. The link below says

"NOT -- Called Logical NOT Operator. Used to reverse the logical state of its 
operand. If a condition is true, then Logical NOT operator will make false."

But as you saw, that is not so. If foo is X'01' then NOT foo is X'FE' and both 
are true.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Bob Bridges
Sent: Sunday, June 7, 2020 11:53 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: COBOL Question

You must have misread me somehow, Mr Mills; I didn't say there's a '!' operator 
in VBA.  You spoke of a '!' operator in C, but I've never heard of that 
operator in VBA; all I meant is that maybe I should look in VBA for another 
Boolean operator that is different from NOT as you say '!' is different from 
'~' in C.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to