Table of Contents

Interface IStdConstantsModule

Namespace
RDCore.SDK.Runtime.Abstract.StdLib
Assembly
RDCore.SDK.dll

MS-VBAL 6.1.2.2 Constants Module

[StdLibModule(null)]
public interface IStdConstantsModule

Remarks

Formalizes the public interface of the Constants module.
Defines a series of non-printable characters, making this a bit awkward.
👉 Each field is one of the module's Const members, declared as the value it is: StdLibSymbolReader reads it as a Public Const of that value's type, carrying the value, so a use site folds it like any other constant. Nothing implements this interface: a constant is substituted where it is used, never called.

Fields

VBBack

vbBack: VBA.Strings.Chr$(8).

public static readonly VBStringValue VBBack

Field Value

VBStringValue

VBCr

vbCr: VBA.Strings.Chr$(13).

public static readonly VBStringValue VBCr

Field Value

VBStringValue

VBCrLf

vbCrLf: VBA.Strings.Chr$(13) + VBA.Strings.Chr$(10).

public static readonly VBStringValue VBCrLf

Field Value

VBStringValue

VBFormFeed

vbFormFeed: VBA.Strings.Chr$(12).

public static readonly VBStringValue VBFormFeed

Field Value

VBStringValue

VBLf

vbLf: VBA.Strings.Chr$(10).

public static readonly VBStringValue VBLf

Field Value

VBStringValue

VBNewLine

vbNewLine: "An implementation-defined String value representing a new line".

public static readonly VBStringValue VBNewLine

Field Value

VBStringValue

Remarks

👉 CrLf rather than the host's own line separator, as VBStackTrace joins its lines: a VBA String's line break is CrLf whatever platform the environment host runs on.

VBNullChar

vbNullChar: VBA.Strings.Chr$(0).

public static readonly VBStringValue VBNullChar

Field Value

VBStringValue

VBNullString

vbNullString: "An implementation-defined String value representing a null string pointer".

public static readonly VBStringValue VBNullString

Field Value

VBStringValue

Remarks

VBNullString: a String bound to a null pointer rather than to a zero-length string, which compares equal to "" and occupies no string storage.

VBObjectError

vbObjectError: -2147221504.

public static readonly VBLongValue VBObjectError

Field Value

VBLongValue

Remarks

A Long, which is the type of that literal: it is beyond the range of an Integer.

VBTab

vbTab: VBA.Strings.Chr$(9).

public static readonly VBStringValue VBTab

Field Value

VBStringValue

VBVerticalTab

vbVerticalTab: VBA.Strings.Chr$(11).

public static readonly VBStringValue VBVerticalTab

Field Value

VBStringValue