VBScript: Converting and Formatting with Functions
(Page 1 of 5 )
In our last tutorial, I tried to cover as many of the Conversion and Formatting functions of VBScript as possible. As it turned out, I only got halfway through the Conversion functions. This time, I will get through the rest of the Conversion functions, and maybe even get to the Formatting functions.
In fact, this time, I vow to get through at least the rest of the Conversions, or my name isn't Big James Stud. It's a lot to cover, and I really want my name to stay Big James Stud, so let's stop all the yapping and get to tapping. On the keyboard.
Here's the table I know you missed so badly:
Function | What It Does | Type of Function |
Asc | Used to convert the first letter in a string to ANSI | Conversion |
CBool | Used to convert an expression to Boolean | Conversion |
CByte | Used to convert an expression to a Byte | Conversion |
CCur | Used to convert an expression to a Currency | Conversion |
CDate | Used to convert an expression to a Date | Conversion |
CDbl | Used to convert an expression to a Double | Conversion |
Chr | Used to convert an ANSI Code to a character | Conversion |
CInt | Used to convert an expression to an Integer | Conversion |
CLng | Used to convert an expression to a Long | Conversion |
CSng | Used to convert an expression to a Single | Conversion |
CStr | Used to convert an expression to a String | Conversion |
Hex | Used to retrieve the hexadecimal value of a number | Conversion |
Oct | Used to retrieve the octal value of a number | Conversion |
FormatCurrency | Used to return and format an expression as currency | Format |
FormatDateTime | Used to return and format an expression as a date or time | Format |
FormatNumber | Used to return and format an expression as a number | Format |
FormatPercent | Used to return and format an expression as a percent | Format |
Next: The Function with Character >>
More Windows Scripting Articles
More By James Payne