ADO Open Method Options - Bitwise AND
Posted on 2002-03-09
The documentation for the ADO Open method Options parameter states: "Can be one or more CommandTypeEnum or ExecuteOptionEnum values, which can be combined with a bitwise AND operator."
Well, if I combine any two of the enum values using AND, the result is zero. For example
dim foo as long
foo = CommandTypeEnum.adCmdText AND _ ExecuteOptionEnum.adAsyncExecute
This doesn't make sense to me. Can somebody explain it?
I vaguely recall bit level mainuplation from a C class long ago, can't find anything useful in my VB docs.