# Constants module

The Constants module holds the constants of the VBA package that belong to no enumeration, such as **vbCrLf**, **vbNullString** and **vbObjectError**, and lists the package's enumerations.

## Constants

**vbBack**{: #vbBack }
: The backspace character --- **Chr(8)**.

**vbCr**{: #vbCr }
: The carriage return character --- **Chr(13)**.

**vbCrLf**{: #vbCrLf }
: The carriage return + linefeed pair --- **Chr(13) & Chr(10)**.

**vbFormFeed**{: #vbFormFeed }
: The form feed character --- **Chr(12)**.

**vbLf**{: #vbLf }
: The linefeed character --- **Chr(10)**.

**vbNewLine**{: #vbNewLine }
: The platform-appropriate newline character. In twinBASIC, identical to **vbCrLf**.

**vbNullChar**{: #vbNullChar }
: The null character --- **Chr(0)**.

**vbNullPtr**{: #vbNullPtr }
: A null pointer of type **LongPtr** (zero), for use with API declarations that take a pointer or handle argument.

**vbNullString**{: #vbNullString }
: A null string pointer. Distinct from the zero-length string `""`; used when calling external procedures that differentiate between a null pointer and an empty string.

**vbObjectError**{: #vbObjectError }
: The base value for user-defined error numbers --- **&H80040000** (-2147221504). User-defined error numbers should be greater than this; for example, `Err.Raise vbObjectError + 1000`.

**vbPtrSize**{: #vbPtrSize }
: The size in bytes of a pointer in the current build, a **Long**: **4** in a 32-bit build and **8** in a 64-bit build. It is a constant, so it can be used in a constant expression and in an array bound; the size of a **LongPtr** in the same build. It is not a [compiler constant](/Reference/Compiler-Constants.md): `#If vbPtrSize = 8 Then` is always false, and conditional compilation tests **Win64** instead.

**vbTab**{: #vbTab }
: The tab character --- **Chr(9)**.

**vbVerticalTab**{: #vbVerticalTab }
: The vertical tab character --- **Chr(11)**.

## Enumerations

- [VbAppWinStyle](/tB/Modules/Constants/VbAppWinStyle.md) -- window style values for the **Shell** function
- [VbArchitecture](/tB/Modules/Constants/VbArchitecture.md) -- processor architecture identifiers
- [VbCalendar](/tB/Modules/Constants/VbCalendar.md) -- calendar type values (Gregorian or Hijri)
- [VbCallType](/tB/Modules/Constants/VbCallType.md) -- procedure call type values for **CallByName**
- [VbCompareMethod](/tB/Modules/Constants/VbCompareMethod.md) -- text comparison modes for string functions
- [VbDateTimeFormat](/tB/Modules/Constants/VbDateTimeFormat.md) -- format codes for **FormatDateTime**
- [VbDayOfWeek](/tB/Modules/Constants/VbDayOfWeek.md) -- day-of-week constants for date functions
- [VbFileAttribute](/tB/Modules/Constants/VbFileAttribute.md) -- file attribute flags for **Dir**, **GetAttr**, and **SetAttr**
- [VbFirstWeekOfYear](/tB/Modules/Constants/VbFirstWeekOfYear.md) -- first-week-of-year selectors for date functions
- [VbIMEStatus](/tB/Modules/Constants/VbIMEStatus.md) -- Input Method Editor status values
- [VbMsgBoxResult](/tB/Modules/Constants/VbMsgBoxResult.md) -- the values returned by **MsgBox**
- [VbMsgBoxStyle](/tB/Modules/Constants/VbMsgBoxStyle.md) -- buttons, icons, and behaviour flags for **MsgBox**
- [VbStrConv](/tB/Modules/Constants/VbStrConv.md) -- conversion type flags for **StrConv**
- [VbTriState](/tB/Modules/Constants/VbTriState.md) -- three-state values used in place of **Boolean** arguments
- [VbVarType](/tB/Modules/Constants/VbVarType.md) -- variant subtype codes returned by **VarType**
