Windows Dev Center

Expand Minimize

VarMul function

Returns the result from multiplying two variants.

Syntax


HRESULT VarMul(
  _In_  LPVARIANT pvarLeft,
  _In_  LPVARIANT pvarRight,
  _Out_ LPVARIANT pvarResult
);

Parameters

pvarLeft [in]

The first variant.

pvarRight [in]

The second variant.

pvarResult [out]

The result variant.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The function operates as follows.

ConditionResult
Both expressions are strings, dates, characters, or boolean valuesMultiplication
One expression is a string and the other a characterMultiplication
One expression is numeric and the other a stringMultiplication
Both expressions are numericMultiplication
Either expression is nullNull
Both expressions are emptyEmpty string

 

Boolean values are converted to -1 for FALSE and 0 for TRUE.

Windows Phone 8.1: This API is supported.

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft