| Conversion Functions ASP Script - ASP Web Pro |
|
ASP ScriptsCONVERSION FUNCTIONSConversion functions allow you to change the subtype of a variable. VBScript assigns the variant type to all variables as a default, but there are many cases when you might have to convert a variable to a particular type to satisfy an arguement. A common example would be that you might have a string arguement that returns a numeric value or a numeric arguement that returns a string value. Here are some of the most commonly used conversion functions:
The CByte function converts this variable to a subtype byte.
The CDbl function converts this variable to a subtype double.
The CInt function converts this variable to a subtype integer.
The CLng function converts this variable to a subtype long.
The CStr function converts this variable to a subtype string.
|
|||||||
|
Main Menu Other Resources
Last Updated:
|
|||||||
|
© 1997-2008 ASP Web Pro, Inc. | Terms of Use
|