CStr

The CStr function converts an expression to type String.

Syntax :

CStr(Expression)
Parameters Description
Expression Requires a valid expression.
If Expression is :-
Boolean - Then the CStr function will return a string containing true or false.
Date - Then the CStr function will return a string that contains a date in the short-date format.
Null - Then a run time error will occur.
Error - Then CStr function will return a string that contains the word "Error" followed by an error number.
Other Numeric - Then the CStr function will return a string that contains the number.

Example :

dCStr = CStr(#13-06-94#)
DEBUG(dCStr)

Result :

dCStr
= 13/6/1994