VBScript CStr function
CStr function to convert a string expression (String) type.
grammar
CStr(expression)
参数 | 描述 |
---|---|
expression | 必需。任何有效的表达式。 如果表达式是:
|
Examples
Examples
<script type="text/vbscript">
document.write(CStr("300000") & "<br />")
document.write(CStr(#10-05-25#) & "<br />")
</script>
document.write(CStr("300000") & "<br />")
document.write(CStr(#10-05-25#) & "<br />")
</script>
Examples of the above output:
300000
10/5/2025
10/5/2025
try it"
Complete VBScript Reference