Does anyone have any suggestions on how to perform bit-wise functions, since AND/OR will only return a boolean answer.
Obviously, I want to check for the existence of a bit within a value. Doing the following, "Flags AND 512" only returns True/False (depending on the contents of Flags) and not a value as a result of ANDing 512 with Flags.
Maybe I'm missing something, but as I've tried to use it they way I think it should work, or the way I'd like it to work, it does not return the expected results.
I've checked every newsgroup I could find and searched the web for CR web sites, and of course, I've searched CR's KB.
Any hints and/or suggestions would be greatly appreciated.
Thanks,
Rob
Obviously, I want to check for the existence of a bit within a value. Doing the following, "Flags AND 512" only returns True/False (depending on the contents of Flags) and not a value as a result of ANDing 512 with Flags.
Maybe I'm missing something, but as I've tried to use it they way I think it should work, or the way I'd like it to work, it does not return the expected results.
I've checked every newsgroup I could find and searched the web for CR web sites, and of course, I've searched CR's KB.
Any hints and/or suggestions would be greatly appreciated.
Thanks,
Rob