|
Microsoft® Visual Basic® Scripting Edition VBScript Glossary |
Language Reference |
Is is also a comparison operator, but it is used exclusively for determining if one object reference is the same as another.
Const A = "MyString"
| Subtype | Range |
| Byte | 0 to 255. |
| Boolean | True or False. |
| Integer | -32,768 to 32,767. |
| Long | -2,147,483,648 to 2,147,483,647. |
| Single | -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values. |
| Double | -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values. |
| Currency | -922,337,203,685,477.5808 to 922,337,203,685,477.5807. |
| Date | January 1, 100 to December 31, 9999, inclusive. |
| Object | Any Object reference. |
| String | Variable-length strings may range in length from 0 to approximately 2 billion characters. |
Dates are stored as part of a real number. Values to the left of the decimal represent the date; values to the right of the decimal represent the time. Negative numbers represent dates prior to December 30, 1899.
In VBScript, the only recognized format is US-ENGLISH, regardless of the actual locale of the user. That is, the interpreted format is mm/dd/yyyy.
Sub MySub() ' This statement declares a sub procedure block.
Dim A ' This statement starts the procedure block.
A = "My variable" ' Procedure-level code.
Debug.Print A ' Procedure-level code.
End Sub ' This statement ends a sub procedure block.
Note that script-level code resides outside any procedure blocks.
Variable names: