CStr Function |
No
CStr(expression)
expression
Use: Required
Data Type: Any
Any expression that evaluates to a string.
expression converted to a string.
Returns a string representation of expression.
Almost any data can be passed to CStr to be converted to a string.
CStr is equivalent to the older Str function.
Dim sMyString as String SMyString = CStr(100)
The string representation of Boolean values is either True or False, as opposed to their underlying values of and –1.
Uninitialized numeric data types passed to CStr return "0".
An uninitialized date variable passed to CStr returns "12:00:00AM."
3.145.56.28