All Functions
CBool Function
CByte Function
CCur Function
CDate Function
CDbl Function
CInt Function
CLng Function
CSng Function
FUNCTION: CStr( )
Implemented in version 1.0
You can determine the expression subtype by using the function
VarType( )
.
CStr
(Expression)
The
CStr
function converts an expression into a variant of subtype
String
.
If the expression is
Boolean
, the output is a string containing either true or false. If the expression is a
Date
, the output is a string using the short-date format. If the expression is empty, the output is a zero length string. If the expression is an error, the output is a string with the word error followed by the error number. If the expression is numeric, the output string contains the number. If the expression is
Null
(does not exist), the output is a runtime error.
Code:
<% anyexpression=5678 %>
<% =CStr(anyexpression) %>
Output:
5678
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information