Click to Rate and Give Feedback
MSDN
MSDN Library
COM
 VarOr

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Component Automation
VarOr

Performs a logical disjunction on two variants.

HRESULT VarOr( 
  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

FALSE

FALSE

NULL

NULL

NULL

TRUE

TRUE

NULL

FALSE

NULL

NULL

NULL

NULL

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker