CVar
Coerces an expression to a Variant.
Syntax: CVar( expression )
- expression
- required Any valid expression. The acceptable range is the same as Double for numerics, and the same as String for non-numerics.
The return type is Variant.
Example
This example uses the CVar function to convert an expression to a Variant.
Dim MyInt, MyVar
MyInt = 4534 ' MyInt is an Integer.
MyVar = CVar(MyInt & 000) ' MyVar contains the string "4534000".