MS-Excel / General Formatting

Conversion Functions

FunctionWhat It Returns
CBool(expression)An expression converted to a Boolean value.
CByte(expression)An expression converted to a Byte value.
CCur(expression)An expression converted to a Currency value.
CDate(expression)An expression converted to a Date value.
CDbl(expression)An expression converted to a Double value.
CDec(expression)An expression converted to a Decimal value.
CInt(expression)An expression converted to an Integer value.
CLng(expression)An expression converted to a Long value.
CSng(expression)An expression converted to a Single value.
CStr(expression)An expression converted to a String value.
CVar(expression)An expression converted to a Variant value.
CVDate(expression)An expression converted to a Date value. (Provided for backward compatibility. Use CDate instead.)
CVErr(errornumber)A Variant of subtype Error that contains errornumber.
[Contents] [Next]