Programmer1974
Programmer
I've seen this line of script in a few exampes here at teck tips, and I'm curious to what it's actually doing. Here is an example:
newAce.AccessMask = ADS_RIGHT_GENERIC_ALL Or DS_RIGHT_GENERIC_READ Or ADS_RIGHT_GENERIC_EXECUTE Or ADS_RIGHT_GENERIC_WRITE Or ADS_RIGHT_DELETE
You could also write a statement like this:
strTest = 1 OR 2
If you do this statement:
MsgBox strTest
The popup box will show the value "3". What in the world is the OR doing with these statements?
Thank you much!
newAce.AccessMask = ADS_RIGHT_GENERIC_ALL Or DS_RIGHT_GENERIC_READ Or ADS_RIGHT_GENERIC_EXECUTE Or ADS_RIGHT_GENERIC_WRITE Or ADS_RIGHT_DELETE
You could also write a statement like this:
strTest = 1 OR 2
If you do this statement:
MsgBox strTest
The popup box will show the value "3". What in the world is the OR doing with these statements?
Thank you much!