Table<T> class | QSYS API Reference Guide

Supports RPG’s table type by encapsulating an array and providing it with an implied index through the use of the CurrentElement property.

Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object

Constructors

Name Description
Table(Int32) Constructor for Table.

Table(Int32)

Constructor for Table.

Table(Int32)

Parameters

Type Parameter name Description
Int32 length Number of elements within the array.

Properties

Type Name Description
T CurrentElement Returns the element at the current index of the Table.
T Item Default property for the table which returns the array value at the specified index.

Methods

Signature Description
GetEnumerator() Returns an enumerator to iterate over the table elements.
Initialize(T) Initializes the elements of an arbitrary array to the same value.

IEnumerator GetEnumerator()

Returns an enumerator to iterate over the table elements.

IEnumerator<T> GetEnumerator()

void Initialize(T val)

Initializes the elements of an arbitrary array to the same value.

void Initialize(T val)

Parameters

Type Parameter name Description
T val The value to place in the table elements.