VBScript CStr Function
❮ Complete VBScript ReferenceThe CStr function converts an expression to type String.
Syntax
CStr(expression)
Parameter | Description |
---|---|
expression | Required. Any valid expression If expression is:
|
Example
Example
<%
response.write(CStr("300000") & "<br />")
response.write(CStr(#10-05-25#) & "<br />")
%>
The output of the code above will be:
300000
10/5/2025
Show Example »
❮ Complete VBScript Reference