CDEC.ToVarmethod
Returns the currency as a VT_CY variant.
Syntax
FUNCTION ToVar () AS VARIANT
Description
Returns the DECIMAL as a VT_DECIMAL variant.
Remarks
Can be used to assign a currency directly to a DVARIANT variable.
Example
DIM dec AS CDEC = 12345.1234 DIM dv AS DVARIANT = dec.ToVar
Reference
- Defined in AfxNova/CDEC.inc:252
- Documented in Numeric Datatypes/CDEC Class.md
- Topic: CDEC Class