Enumerations

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.

AppWinStyle Enumeration

Determines the appearance and behavior of the window opened by the Shell function.

Hide

MinimizedNoFocus

MaximizedFocus

NormalFocus

MinimizedFocus

NormalNoFocus

CallType Enumeration

Defines the type of procedure invoked by the CallByName function.

Get

Set

Method

CompareMethod Enumeration

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

ControlChars Class

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

DateFormat Enumeration

Defines the format of the date returned by the FormatDateTime function.

GeneralDate

ShortDate

LongDate

ShortTime

LongTime

DateInterval Enumeration

Defines the date interval for date/time functions, such as DateDiff, DatePart, and DateAdd.

Day

Quarter

DayOfYear

Second

Hour

Weekday

Minute

WeekOfYear

Month

Year

DueDate Enumeration

Used with the FV, IPmt, NPer, Pmt, PPmt, PV, and Rate functions to define whether a payment is due ...

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.