Easy Tutorial
❮ Func Datevalue Vbscript Examples ❯

VBScript CStr Function



The CStr function converts an expression to a String type.

Syntax

Parameter Description
expression Required. Any valid expression. If the expression is: Boolean - The CStr function returns a string containing "true" or "false".<br> Date - The CStr function returns a string containing the date in short date format.<br> Null - A run-time error occurs.<br> Empty - The CStr function returns an empty string ("").<br> Error - The CStr function returns a string containing the word "Error" and the error number.<br> Other numeric - The CStr function returns a string containing the number.

Example

Example

The above example output:


❮ Func Datevalue Vbscript Examples ❯