Constants

VB recognizes the following intrinsic constants:

Call Type Constants

vbGet

vbMethod

vbLet

vbSet

Comparison Constants

vbBinaryCompare

vbTextCompare

Date and Time Constants

vbSunday

vbSaturday

vbMonday

vbUseSystem

vbTuesday

vbUseSystemDayOfWeek

vbWednesday

vbFirstJan1

vbThursday

vbFirstFourDays

vbFriday

vbFirstFullWeek

Date Format Constants

vbGeneralDate

vbShortDate

vbLongDate

vbShortTime

vbLongTime

Error Constant

vbObjectError

File Attributes

vbArchive

vbNormal

vbDirectory

vbSystem

vbHidden

vbVolume

vbReadOnly

Logical and Tristate Constants

False

vbTrue

True

vbUseDefault

vbFalse

Message Box Constants

Buttons constants

vbAbortRetryIgnore

vbRetryCancel

vbMsgBoxHelp

vbYesNo

vbOKCancel

vbYesNoCancel

vbOKOnly

Default button constants

vbDefaultButton1

vbDefaultButton3

vbDefaultButton2

Icon constants

vbCritical

vbInformation

vbExclamation

vbQuestion

Modality constants

vbApplicationModal

vbSystemModal

Return value constants

vbAbort

vbOK

vbCancel

vbRetry

vbIgnore

vbYes

vbNo

Miscellaneous constants

vbMsgBoxRight

vbMsgBoxSetForeground

vbMsgBoxRtlReading

Special Character Constants

vbBack

vbNewLine

vbCr

vbNullChar

vbCrLf

vbNullString

vbFormFeed

vbTab

vbLf

vbVerticalTab

Variable Subtype Constants

vbArray

vbInteger

vbBoolean

vbLong

vbByte

vbNull

vbCurrency

vbObject

vbDate

vbSingle

vbDecimal

vbString

vbDouble

vbUserDefinedType

vbEmpty

vbVariant

Window Style Constants

vbHide

vbNarrow

vbHiragana

vbNormalFocus ...

Get VB.NET Language Pocket Reference 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.