Converts an expression to a Variant.
CVar(expression)
The expression argument is any valid numeric or string expression.
In general, you can document your code using the data type conversion functions to show that the result of some operation should be expressed as a particular data type rather than the default data type. For example, use CVar to force the result to be expressed as a Variant.
Data Type Summary.
This example uses the CVar function to convert an expression to a Variant.
MyInt = 4534 ' MyInt is an Integer.= CVar(MyInt & "000") ' MyVar contains the string ' 4534000.