Description

Assigns a relational boolean operation to join the existing and next condition clauses in this McDBQuery.

Return Type

None  

Syntax

object.SetBoolOp bop

The SetBoolOp Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBQuery.
bopRequired. A mcDBBoolOp enumeration, as described in settings.

The boolean relation between query elements already set in this McDBQuery and the subsequent element(s) set.

Settings

The settings for bop are:

ConstantValueDescription
 mcdbAND1

AND (True AND True = True, True AND False = False)

 mcdbOR2

OR (True OR True = True, True OR False = True, False OR False = False)

 mcdbXOR4

eXclusive OR (True XOR True = False, True XOR False = True)

 mcdbNOT16

NOT (unary operator: Not True = False, Not False = True)

 mcdbNAND17

NOT AND (True NAND True = False, True NAND False = True)

 mcdbNOR18

NOT OR (True NOR True = False, True NOR False = False, False NOR False = True)

 mcdbNXOR20

NOT eXcusive OR (True NXOR True = True, True NXOR False = False)

Remarks

McDBQuery objects can encapsulate a single query based upon multiple critera (e.g. Name and Type), and must therefore be capable of representing every combination of these dependent queries (e.g. Name=<NameVal> AND Type=<TypeVal>, or Name=<NameVal> OR Type=<TypeVal>), which yield different results.

Exceptions

Error Value Description
E_PENDING &H8000000A The database context has not been established. Call AttachDatabase().

Notes

If SetBoolOp() is not called between calls to other query Set methods, a boolean operation of mcdbAND is assumed.