VarDecCmp Function

Compares two variants of type decimal.

HRESULT VarDecCmp(  
  LPDECIMAL  pdecLeft,         
  LPDECIMAL  pdecRight  
);

pdecLeft

[in] Points to the first decimal variant.

pdecRight

[out] Points to the second decimal variant.

The function returns the following as a SUCCESS HRESULT:

Options

Value

Meaning

VARCMP_LT

0

The pdecLeft is less than pdecRight.

VARCMP_EQ

1

The two parameters are equal.

VARCMP_GT

2

The pdecLeft is greater than pdecRight.

VARCMP_NULL

3

Either expression is NULL.

Show:
© 2015 Microsoft