Intrinsic Constants and Enumerations
Visual Basic provides a number of intrinsic constants and enumerations to facilitate your programming.
Constants store values that remain constant throughout the execution of an application. They are meaningful names that take the place of a number or string and make code more readable. Enumerations offer an easy way to work with sets of related constants. An enumeration, or Enum, is a symbolic name for a set of values.
You can create your own constants and enumerations, as discussed in User-Defined Constants, or you can use the intrinsic constants and enumerations Visual Basic provides, which are listed in the Object Browser.
The following table lists and describes the intrinsic enumerations available in Visual Basic.
Indicates the window style to use for the invoked program when calling the Shell function.
Indicates how to play sounds when calling audio methods.
Indicates the type of role to check when calling the My.User.IsInRole Method.
Indicates the type of procedure being invoked when calling the CallByName function.
Indicates how to compare strings when calling comparison functions.
Indicates how to display dates when calling the FormatDateTime function.
Indicates how to determine and format date intervals when calling date-related functions.
Specifies what should be done when a directory that is to be deleted contains files or directories.
Indicates when payments are due when calling financial methods.
Indicates whether text fields are delimited or fixed-width.
Indicates the file attributes to use when calling file-access functions.
Indicates the first day of the week to use when calling date-related functions.
Indicates the first week of the year to use when calling date-related functions.
Indicates which button was pressed on a message box, returned by the MsgBox function.
Indicates which buttons to display when calling the MsgBox function.
Identifies whether a file can be read from, written to, or both.
Indicates what access mode should be used when accessing a file.
Specifies whether other processes can access an open file.
Specifies whether a file should be deleted permanently or placed in the Recycle Bin.
Specifies whether to search all or only top-level directories.
Indicates a Boolean value or if the default should be used when calling number-formatting functions.
Specifies what should be done if the user clicks Cancel during an operation.
Specifies whether or not to show a progress dialog box when copying, deleting, or moving files or directories.
Indicates the type of a variant object, returned by the VarType function.
Indicates which type of conversion to perform when calling the StrConv function.