Table of Contents

Class VBIdentifier

Namespace
RDCore.SDK.Model
Assembly
RDCore.SDK.dll

The rules of the names code declares (MS-VBAL §3.3.5): what tooling asks of a name it writes into code, a rename's new name first.

public static class VBIdentifier
Inheritance
VBIdentifier
Inherited Members

Remarks

A name is a Latin-identifier - a letter, then letters, digits and underscores - that is not a reserved-identifier (§3.3.5.2). The letters of other scripts are accepted where a Latin letter is: an implementation MAY support the identifier forms of a code page (§3.3.5.1), and MS-VBA does - Données is a name. Names are the same in any case.

Methods

IsReserved(string)

Whether name is a keyword of the language: a reserved-identifier (MS-VBAL §3.3.5.2).

public static bool IsReserved(string name)

Parameters

name string

A name, without a type-declaration character.

Returns

bool

Validate(string)

Whether code can declare name, and why not when it cannot.

public static VBIdentifierValidity Validate(string name)

Parameters

name string

The name, without a type-declaration character.

Returns

VBIdentifierValidity