YouTip LogoYouTip

Func Cstr

# VBScript CStr Function * * Complete VBScript Reference Manual](#) * * * The CStr function converts an expression to a String type. ### Syntax CStr(expression) | Parameter | Description | | :--- | :--- | | expression | Required. Any valid expression. If the expression is: * Boolean - The CStr function returns a string containing true or false. * Date - The CStr function returns a string containing the date in short date format. * Null - A run-time error will occur. * Empty - The CStr function returns an empty string (""). * Error - The CStr function returns a string containing the word "Error" and the error number. * Other numeric - The CStr function returns a string containing the number. | ## Example ## Example document.write(CStr("300000") & "
") document.write(CStr(#10-05-25#) & "
") The output of the above example: 300000 10/5/2025 [Try it Β»](#) * * Complete VBScript Reference Manual](#)
← Func HexFunc Csng β†’