Constants Class

 

The Constants module contains miscellaneous constants. These constants can be used anywhere in your code.

Namespace:   Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

System.Object
  Microsoft.VisualBasic.Constants

[StandardModuleAttribute]
public sealed class Constants

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticvbAbort

Indicates that the Abort button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbAbortRetryIgnore

Indicates that the Abort, Retry, and Ignore buttons will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbApplicationModal

Indicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbArchive

Indicates that the file has changed since the last backup operation for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbArray

Indicates that the type of a variant object is an array. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbBack

Represents a backspace character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbBinaryCompare

Specifies that a binary comparison should be performed when comparison functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbBoolean

Indicates that the type of a variant object is Boolean. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbByte

Indicates that the type of a variant object is Byte. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbCancel

Indicates that the Cancel button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbCr

Represents a carriage-return character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbCritical

Indicates that the critical message icon will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbCrLf

Represents a carriage-return character combined with a linefeed character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbCurrency

Indicates that the type of a variant object is Currency. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbDate

Indicates that the type of a variant object is Date. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbDecimal

Indicates that the type of a variant object is Decimal. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbDefaultButton1

Indicates that the leftmost button is selected as the default button when the message box appears.

System_CAPS_pubfieldSystem_CAPS_staticvbDefaultButton2

Indicates that the second button from the left is selected as the default button when the message box appears.

System_CAPS_pubfieldSystem_CAPS_staticvbDefaultButton3

Indicates that the third button from the left is selected as the default button when the message box appears.

System_CAPS_pubfieldSystem_CAPS_staticvbDirectory

Indicates that the file is a directory or folder for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbDouble

Indicates that the type of a variant object is Double. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbEmpty

Indicates that the type of a variant object is Empty. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbExclamation

Indicates that the exclamation icon will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbFalse

Indicates that a Boolean value of False should be used when number-formatting functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbFirstFourDays

Indicates that the first week of the year that has at least four days should be used when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbFirstFullWeek

Indicates that the first full week of the year should be used when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbFirstJan1

Indicates that the week of the year in which January 1 occurs should be used when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbFormFeed

Represents a form-feed character for print functions.

System_CAPS_pubfieldSystem_CAPS_staticvbFriday

Specifies that Friday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbGeneralDate

Indicates that the general date format for the current culture should be used when the FormatDateTime function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbGet

Specifies that a property value should be retrieved when the CallByName function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbHidden

Indicates that the file is a hidden file for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbHide

Indicates that the window style is hidden for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbHiragana

Indicates Hiragana characters should be converted to Katakana characters when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbIgnore

Indicates that the Ignore button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbInformation

Indicates that the information icon will display when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbInteger

Indicates that the type of a variant object is Integer. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbKatakana

Indicates that Katakana characters should be converted to Hiragana characters when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbLet

Indicates that a property value should be set to an object instance when the CallByName function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbLf

Represents a linefeed character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbLinguisticCasing

Indicates that characters should be converted to use linguistic rules for casing instead of file system rules for casing to when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbLong

Indicates the type of a variant object is Long. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbLongDate

Indicates that the long date format for the current culture should be used when the FormatDateTime function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbLongTime

Indicates that the long time format for the current culture should be used when the FormatDateTime function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbLowerCase

Indicates that characters should be converted to lowercase when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMaximizedFocus

Indicates that the window style is maximized with focus for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMethod

Specifies that a method should be called when the CallByName function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMinimizedFocus

Indicates that the window style is minimized with focus for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMinimizedNoFocus

Indicates that the window style is minimized without focus for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMonday

Specifies that Monday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbMsgBoxHelp

Indicates that the Help button will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMsgBoxRight

Indicates that text will be right-aligned when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMsgBoxRtlReading

Indicates that right-to-left reading text (Hebrew and Arabic systems) will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbMsgBoxSetForeground

Indicates that the message box will display in the foreground when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbNarrow

Indicates that wide (double-byte) characters should be converted to narrow (single-byte) characters when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbNewLine

Represents a newline character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbNo

Indicates that the No button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbNormal

Indicates that the file is a normal file for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbNormalFocus

Indicates that the window style is normal with focus for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbNormalNoFocus

Indicates that the window style is normal without focus for the invoked program when the Shell function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbNull

Indicates that the type of a variant object is Nothing. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbNullChar

Represents a null character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbNullString

Represents a zero-length string for print and display functions, and for calling external procedures.

System_CAPS_pubfieldSystem_CAPS_staticvbObject

Indicates that the type of a variant object is Object. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbObjectError

Represents the object error number. User-defined error numbers should be greater than this value.

System_CAPS_pubfieldSystem_CAPS_staticvbOK

Indicates that the OK button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbOKCancel

Indicates that the OK and Cancel buttons will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbOKOnly

Indicates that only the OK button will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbProperCase

Indicates that the first letter of every word in a string should be converted to uppercase and the remaining characters to lowercase when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbQuestion

Indicates that the question icon will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbReadOnly

Indicates that the file is a read-only file for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbRetry

Indicates that the Retry button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbRetryCancel

Indicates that the Retry and Cancel buttons will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbSaturday

Specifies that Saturday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbSet

Indicates that a property value should be set when the CallByName function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbShortDate

Indicates that the short-date format for the current culture should be used when the FormatDateTime function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbShortTime

Indicates that the short-time format for the current culture should be used when the FormatDateTime function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbSimplifiedChinese

Indicates that characters should be converted to Simplified Chinese when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbSingle

Indicates that the type of a variant object is Single. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbString

Indicates that the type of a variant object is String. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbSunday

Specifies that Sunday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbSystem

Indicates that the file is a system file for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbSystemModal

Indicates that the message box will be displayed as a modal dialog box when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbTab

Represents a tab character for print and display functions.

System_CAPS_pubfieldSystem_CAPS_staticvbTextCompare

Indicates that a text comparison should be performed when comparison functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbThursday

Specifies that Thursday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbTraditionalChinese

Indicates that characters should be converted to Traditional Chinese when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbTrue

Indicates that a Boolean value of True should be used when number-formatting functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbTuesday

Specifies that Tuesday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbUpperCase

Indicates that characters should be converted to uppercase when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbUseDefault

Indicates that the default Boolean value should be used when number-formatting functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbUserDefinedType

Indicates that the type of a variant object is a user-defined type. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbUseSystem

Indicates that the week specified by your system as the first week of the year should be used when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbUseSystemDayOfWeek

Indicates that the day specified by your system as the first day of the week should be used when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbVariant

Indicates that the type of a variant object is Variant. Returned by the VarType function.

System_CAPS_pubfieldSystem_CAPS_staticvbVerticalTab

Represents a carriage-return character for print functions.

System_CAPS_pubfieldSystem_CAPS_staticvbVolume

Indicates the volume label file attribute for file-access functions.

System_CAPS_pubfieldSystem_CAPS_staticvbWednesday

Specifies that Wednesday should be used as the first day of the week when date-related functions are called.

System_CAPS_pubfieldSystem_CAPS_staticvbWide

Indicates that narrow (single-byte) characters should be converted to wide (double-byte) characters when the StrConv function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbYes

Indicates that the Yes button was clicked in a message box. Returned by the MsgBox function.

System_CAPS_pubfieldSystem_CAPS_staticvbYesNo

Indicates that the Yes and No buttons will be displayed when the MsgBox function is called.

System_CAPS_pubfieldSystem_CAPS_staticvbYesNoCancel

Indicates that the Yes, No, and Cancel buttons will be displayed when the MsgBox function is called.

This module supports the Visual Basic language constants that correspond to the members of many Visual Basic enumerations:

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: