Appendix D. Visual Basic Constants Supported in VBScript
This appendix is primarily aimed at the Visual Basic programmer who wants to make the jump to VBScript. It covers all of the Visual Basic constants that are supported in VBScript. Constants are useful in script because they allow you to use a specific value without explicitly writing it.
Color Constants
These constants are used within script code to specify particular colors.
Constant | Value | Description |
---|---|---|
|
| Black |
|
| Red |
|
| Green |
|
| Yellow |
|
| Blue |
|
| Magenta |
|
| Cyan |
|
| White |
Comparison Constants
These constants are used to switch between binary or textual comparisons.
Constant | Value | Description |
---|---|---|
|
| Perform a binary comparison. |
|
| Perform a textual comparison. |
|
| Use the day of the week specified for your computer as the first day of the week. |
|
| Use the week in which January 1 occurs as the first week of the year (this is the default). |
|
| Use the week that has at least four days in the new year. |
|
| Use the first full week of the year. |
Date Format Constants
These constants determine how a date is displayed.
Constant | Value | Description |
---|---|---|
|
| Displays a date and/or time. The format is determined by your system settings. |
|
| Display a date using your system's long date format. |
|
| Display a date using your system's short date format. |
|
| Display a time using your system's long ... |
Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.