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.
Defines the type of procedure invoked by the CallByName function.
Used with a variety of string comparison methods (such as InStr, StrComp, and Replace) to determine whether the comparison is case sensitive or insensitive.
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"
Defines the format of the date returned by the FormatDateTime function.
Defines the date interval for date/time functions, such as DateDiff, DatePart, and DateAdd.
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.
Used with the Dir, GetAttr, and SetAttr functions to set a file’s attributes or to retrieve files with particular attributes set.
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.
Used with the DatePart and DateDiff functions to define the first week of the year and to interpret the function’s return value.
Represents the return value of the MsgBox function.
Defines the appearance and behavior of a message box.
Used with the FileOpen function to determine how the file can be accessed.
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.
Used with the FileOpen function to determine the file’s share level.
Used with the FormatCurrency, FormatNumber, and FormatPercent functions to control the format of a number.
Returned by the VarType function to indicate the data type of a variable.