CStr
The CStr function will convert an ASP variant value into
a character string. This conversion method works on all types of
values and should not throw a runtime error.
A lot of conversions to string are done implicitly where needed.
This means you can concatenate a string value with a numeric value
and the numeric value will be converted to a string automatically.
There are very few cases where you will need to explicitly do this
conversion using the CStr function.
Dim nValue
nValue = 23.6 Response.Write "Value = " & CStr(nValue)
|
 |

|