VBScript Built-In Constants

These constants are built-in to VBScript, each string represents a number.

vbAbort            3 
vbAbortRetryIgnore 2 
vbApplicationModal 0 
vbArray         8192 
vbBinaryCompare    0 
vbBlack            0 
vbBlue    16,711,680 
vbBoolean         11 
vbByte            17 
vbCancel           2 
vbCr         Chr(13) 
vbCritical        16 
vbCrLf       Chr(13) 
vbCurrency         6 
vbCyan    16,776,960 
vbDataObject      13 
vbDate             7 
vbDecimal         14 
vbDefaultButton1    0 
vbDefaultButton2  256 
vbDefaultButton3  512 
vbDefaultButton4  768 
vbDouble            5
vbEmpty            0 
vbError           10 
vbExclamation     48 
vbFalse            0  (Logical FALSE is always zero)
vbFirstFourDays    2 
vbFirstFullWeek    3 
vbFirstJan1        1 
vbFormFeed   Chr(12) 
vbFriday           6 
vbGeneralDate      0 
vbGreen        65280 
vbIgnore           5 
vbInformation     64 
vbInteger          2 
vbLf         Chr(10) 
vbLong             3 
vbLongDate         1 
vbLongTime         3 
vbMagenta 16,711,935 
vbMonday           2 
vbMsgBoxHelpButton    16384 
vbMsgBoxRight        524288 
vbMsgBoxRtlReading  1048576 
vbMsgBoxSetForeground 65536 
vbNewLine    Chr(13) 
vbNo               7 
vbNull             1 
vbNullChar    Chr(0) 
vbNullString       0 
vbObject           9 
vbObjectError -2147221504 
vbOK               1 
vbOKCancel         1 
vbOKOnly           0 
vbQuestion        32 
vbRed            255 
vbRetry            4 
vbRetryCancel      5 
vbSaturday         7 
vbShortDate        2 
vbShortTime        4 
vbSingle           4 
vbString           8 
vbSunday           1 
vbSystemModal   4096 
vbTab         Chr(9) 
vbTextCompare      1 
vbThursday         5 
vbTrue            -1  (Logical TRUE is NOT false, so any non-zero value is true)
vbTuesday          3 
vbUseDefault      -2 
vbUseSystem        0 
vbUseSystemDayOfWeek 0 
vbVariant         12 (used only with arrays)
vbVerticalTab Chr(11) 
vbWednesday        4 
vbWhite   16,777,215 
vbYellow       65535 
vbYes              6 
vbYesNo            4 
vbYesNoCancel      3 

“Find the seed at the bottom of your heart and bring forth a flower” ~ Shigenori Kameoka


© Copyright SS64.com 1999-2013
Some rights reserved