VarImp Function

Performs a bitwise implication on two variants.

HRESULT VarImp(  
  LPVARIANT  pvarLeft,         
  LPVARIANT  pvarRight,  
  LPVARIANT  pvarResult
);

pvarLeft

[in] Points to the first variant.

pvarRight

[in] Points to the second variant.

pvarResult

[out] Points to the result variant.

The function returns one of the following:

If pvarLeft is

If pvarRight is

Then pvarResult is

TRUE

TRUE

TRUE

TRUE

FALSE

TRUE

TRUE

NULL

TRUE

FALSE

TRUE

TRUE

FALSE

FALSE

TRUE

FALSE

NULL

TRUE

NULL

TRUE

TRUE

NULL

FALSE

NULL

NULL

NULL

NULL

Since VarImp performs bitwise operations on pvarLeft and pvarRight instead of logical operations a pvarResult of TRUE is returned by this function call.

Show:
© 2014 Microsoft