Table of Contents

Class FormControlArray

Namespace
RDCore.SDK.Workspace.Forms
Assembly
RDCore.SDK.dll

What a Visual Basic 6.0 form's control array is: the controls of one class that its designer persists under one name, each with its own Index, which the form's class has one member for (DeclaredControls()). Command1(0) is the control of index 0, and Command1.Count, Command1.LBound and Command1.UBound are how many controls the array has and the least and the greatest of their indexes.

public static class FormControlArray
Inheritance
FormControlArray
Inherited Members

Remarks

No type library describes a control array: VB6.OLB declares the classes of the controls, not the object that holds them. The array's class is described here as a library's (LibraryDescription), read as one is (LibrarySymbolReader), with one class for each class of control. Its default member takes the index and returns the control, as the control's class; Count, LBound and UBound are Integer, as the Visual Basic 6.0 documentation gives them. Its hidden enumerator, _NewEnum (dispatch identifier -4), is what For Each asks for to go through the controls. The class has no other member, and no event: the events of a control of the array are its class's, and a handler of one takes the control's index first (MemberRoles).

The name of the array's class is the platform's, not Visual Basic's: no code can name it, and what describes the array to a user names the class of its controls (ElementOf(VBType?)).

Fields

LibraryName

The name of the pseudo-library the classes of control arrays are read from: the Library of their symbols.

public const string LibraryName = "ControlArrays"

Field Value

string

Methods

ElementOf(VBType?)

The type of the controls of a control array, when type is one's (TypeOf(VBType, Uri)); null for any other type.

public static VBType? ElementOf(VBType? type)

Parameters

type VBType

A type.

Returns

VBType

TypeOf(VBType, Uri)

The type of a control array whose controls are of element.

public static VBClassType TypeOf(VBType element, Uri workspaceRoot)

Parameters

element VBType

The type of the controls of the array: their class, or the name of one that did not resolve.

workspaceRoot Uri

The root of the workspace the symbols are of.

Returns

VBClassType