Appendix B. VBScript Constants
What follows is a series of tables listing the intrinsic
constants supported by VBScript and their values. Note that, because the
constants are part of the VBScript language, you don’t have to define
them using the Const
statement.
Color Constants
These constants represent the values returned by RGB for standard colors:
Constant | Value | Description |
| 0 | Black |
| 255 | Red |
| 65280 | Green |
| 65535 | Yellow |
| 16,711,680 | Blue |
| 16,711,935 | Magenta |
| 16,776,960 | Cyan |
| 16,777,215 | White |
Comparison Constants
The comparison constants are used by a number of functions (Filter, StrComp, Split, and Replace), as well as by the CompareMode property of the Dictionary object, to determine whether astring comparison should be case-sensitive or not:
Constant | Value | Description |
| 0 | Binary (case-sensitive comparison) |
| 1 | Text (case-insensitive comparison) |
| 2 | Database (unused in VBScript) |
Date and Time Constants
A number of functions (DateDiff, DatePart, Weekday, and WeekdayName) have a
FirstDayOfWeek parameter whose value can be
one of the day of the week constants (vbSunday through vbSaturday) as well as vbUseSystemDayOfWeek.
The DateDiff and DatePart functions also have a
FirstWeekOfYear parameter whose value can
be vbUseSystem, vbFirstJan1, vbFirstFourDays, or vbFirstFullWeek.
Constant | Value | Description |
| 1 | Sunday |
| 2 | Monday |
| 3 | Tuesday |
| 4 | Wednesday |
| 5 | Thursday |
|