The Microsoft.VisualBasic namespace also defines a number of enumerations. Many of their members are functionally identical to almost identically named constants listed in the aforementioned Section 1.7.
Determines the appearance and behavior of the window opened by the Shell function.
Hide | MinimizedNoFocus |
MaximizedFocus | NormalFocus |
MinimizedFocus | NormalNoFocus |
Defines the type of procedure invoked by the CallByName function.
Get | Set |
Method |
|
Used with a variety of string comparison methods (such as InStr, StrComp, and Replace) to determine whether the comparison is case sensitive or insensitive.
Binary | Text |
Values representing a number of control characters are available as static read-only fields of the ControlChars class. They can be referenced just as enumerated members; for example:
Addr = "123 West St. & ControlChars.CrLf & _
"Apt. 12C"
Back | NewLine |
Cr | NullChar |
CrLf | Quote |
FormFeed | Tab |
Lf | VerticalTab |
Defines the format of the date returned by the FormatDateTime function.
GeneralDate | ShortDate |
LongDate | ShortTime |
LongTime |
|
Defines the date interval for date/time functions, such as DateDiff, DatePart, and DateAdd.
Day | Quarter |
DayOfYear | Second |
Hour | Weekday |
Minute | WeekOfYear |
Month | Year |
Used with the FV, IPmt, NPer, Pmt, PPmt, PV, and Rate functions to define whether a payment is due at the beginning or end of a period.
BegOfPeriod | EndOfPeriod |
Used with the Dir, GetAttr, and SetAttr functions to set a file's attributes or to retrieve files with particular attributes set.
Archive | ReadOnly |
Directory | System |
Hidden | Volume |
Normal |
|
Used with the DatePart, DateDiff, Weekday, and WeekdayName functions to define the first day of the week and to interpret the function's return value.
Friday | System |
Monday | Tuesday |
Saturday | Thursday |
Sunday | Wednesday |
Used with the DatePart and DateDiff functions to define the first week of the year and to interpret the function's return value.
FirstFourDays | Jan1 |
FirstFullWeek | System |
Represents the return value of the MsgBox function.
Abort | OK |
Cancel | Retry |
Ignore | Yes |
No |
|
Defines the appearance and behavior of a message box.
AbortRetryIgnore | MsgBoxRtlREading |
ApplicationModal | MsgBoxSetForeground |
Critical | OKCancel |
DefaultButton1 | OKOnly |
DefaultButton2 | Question |
DefaultButton3 | RetryCancel |
Exclamation | SystemModal |
Information | YesNo |
MsgBoxHelp | YesNoCancel |
MsgBoxRight |
|
Used with the FileOpen function to determine how the file can be accessed.
Default | ReadWrite |
Read | Write |
Used with the FileOpen function and returned by the FileAttr function and indicates the file access mode. The Microsoft.VisualBasic namespace also defines an OpenModeTypes enumeration that is identical to OpenMode except for adding an Any member.
Append | Output |
Binary | Random |
Input |
|
Used with the FileOpen function to determine the file's share level.
Default | LockWrite |
LockRead | Shared |
LockReadWrite |
|
Used with the FormatCurrency, FormatNumber, and FormatPercent functions to control the format of a number.
False | UseDefault |
True |
|
Returned by the VarType function to indicate the data type of a variable.
Array | Error |
Boolean | Integer |
Byte | Long |
Char | Null |
Currency | Object |
DataObject | Short |
Date | Single |
Decimal | String |
Double | UserDefinedType |
Empty | Variant |
Supplied as a parameter to the StrConv function to indicate how a string is to be converted.
Hiragana | ProperCase |
Katakana | SimplifiedChinese |
LinguisticCasing | TraditionalChinese |
LowerCase | UpperCase |
Narrow | Wide |
None |
|