contents   index   previous   next



CurrencyCmp

 

f90VB Modules

 

f90VBDefs, f90VBVariants

Summary

 

Compares two currency type values.

Syntax

 

integer(HRESULT_KIND) function CurrencyCmp (CyLeft, CyRight)

type(CURRENCY),intent(in)::  CyLeft
type(CURRENCY),intent(in)::  CyRight

Arguments

 

CyLeft and CyRight [Input]

Two currency type values.

Comments

 

The function returns one of the following values:

 

 

Return value: If:
0 The CyLeft is less than CyRight.
1 The two currency values are equal.
2 The CyLeft is greater than CyRight.
3 Either variant is NULL.

 

If an error occurs, the function may also return an error code as indicated in the following table:

 

 

Return value: Description
DISP_E_BADVARTYPE One or both of the passed variant types are not a valid type of variant.
DISP_E_TYPEMISMATCH At least one of the variants could not be coerced to the appropriate type for this operation.
E_INVALIDARG One of the arguments is invalid.

 

Related Topics

 

For information about: See:
Variant comparisons VariantCmp

 


DecimalCmp