TableMethods class | QSYS API Reference Guide
Estimated reading time: 12 minutes
Contains extension methods for handling Table RPG semantics.
Namespace: ASNA.QSys.Runtime
Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Methods
| Signature |
Description |
| Lookup<T>(Table<T>, T, SearchType, Indicator&) |
Searches the Table for the specified search argument. |
| Lookup<T>(Table<T>, T, SearchType, Indicator&, Indicator&) |
Searches the Table for the specified search argument. |
| Lookup<T>(Table<T>, T) |
Searches the Table for the specified search argument. |
| Lookup<T, U>(Table<T>, T, SearchType, Table<U>, Indicator&) |
Searches the Table for the specified search argument. |
| Lookup<T, U>(Table<T>, T, SearchType, Table<U>, Indicator&, Indicator&) |
Searches the Table for the specified search argument. |
| Lookup<T, U>(Table<T>, T, Table<U>) |
Searches the Table for the specified search argument. |
| LookupGE<T>(Table<T>, T) |
Searches the Table for the specified search argument. |
| LookupGE<T, U>(Table<T>, T, Table<U>) |
Searches the Table for the specified search argument. |
| LookupGT<T>(Table<T>, T) |
Searches the Table for the specified search argument. |
| LookupGT<T, U>(Table<T>, T, Table<U>) |
Searches the Table for the specified search argument. |
| LookupLE<T>(Table<T>, T) |
Searches the Table for the specified search argument. |
| LookupLE<T, U>(Table<T>, T, Table<U>) |
Searches the Table for the specified search argument. |
| LookupLT<T>(Table<T>, T) |
Searches the Table for the specified search argument. |
| LookupLT<T, U>(Table<T>, T, Table<U>) |
Searches the Table for the specified search argument. |
Searches the Table for the specified search argument.
bool Lookup<T>(Table<T> table, T searchArgument, SearchType searchType, Indicator& ind)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| SearchType |
searchType |
The type of lookup being performed. |
| Indicator& |
ind |
Indicator which will be set on (‘1’) if the specified SearchType type is satisfied by the search. |
Returns
| Type |
Description |
| Boolean |
Returns true if lookup is successful, false otherwise. |
Searches the Table for the specified search argument.
bool Lookup<T>(Table<T> table, T searchArgument, SearchType searchType, Indicator& hiLoInd, Indicator& eqInd)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| SearchType |
searchType |
The type of lookup being performed. |
| Indicator& |
hiLoInd |
Indicator which will be set on (‘1’) if the specified LookupStatus type is satisfied by the search. |
| Indicator& |
eqInd |
Indicator which will be set on (‘1’) if Lookup finds an exact match within the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if lookup is successful, false otherwise. |
Searches the Table for the specified search argument.
bool Lookup<T>(Table<T> table, T searchArgument)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if an exact match is found, false otherwise. |
Searches the Table for the specified search argument.
bool Lookup<T, U>(Table<T> table, T searchArgument, SearchType searchType, Table<U> result, Indicator& ind)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| SearchType |
searchType |
The type of lookup being performed. |
| Table<U> |
result |
If the Lookup is successful, the CurrentElement of the result table will be set to the index of the searched table’s CurrentElement. |
| Indicator& |
ind |
Indicator which will be set on (‘1’) if the specified SearchType type is satisfied by the search. |
Returns
| Type |
Description |
| Boolean |
Returns true if lookup is successful, false otherwise. |
Searches the Table for the specified search argument.
bool Lookup<T, U>(Table<T> table, T searchArgument, SearchType searchType, Table<U> result, Indicator& hiLoInd, Indicator& eqInd)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| SearchType |
searchType |
The type of lookup being performed. |
| Table<U> |
result |
If the Lookup is successful, the CurrentElement of the result table will be set to the index of the searched table’s CurrentElement. |
| Indicator& |
hiLoInd |
Indicator which will be set on (‘1’) if the specified SearchType type is satisfied by the search. |
| Indicator& |
eqInd |
Indicator which will be set on (‘1’) if Lookup finds an exact match within the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if lookup is successful, false otherwise. |
Searches the Table for the specified search argument.
bool Lookup<T, U>(Table<T> table, T searchArgument, Table<U> altTable)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| Table<U> |
altTable |
If the Lookup is successful, the CurrentElement of the altTable table will be set to the index of the searched table’s CurrentElement. |
Returns
| Type |
Description |
| Boolean |
Returns true if an exact match is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupGE<T>(Table<T> table, T searchArgument)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value greater than or equal to the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupGE<T, U>(Table<T> table, T searchArgument, Table<U> altTable)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| Table<U> |
altTable |
If the Lookup is successful, the CurrentElement of the altTable table will be set to the index of the searched table’s CurrentElement. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value greater than or equal to the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupGT<T>(Table<T> table, T searchArgument)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value greater than the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupGT<T, U>(Table<T> table, T searchArgument, Table<U> altTable)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| Table<U> |
altTable |
If the Lookup is successful, the CurrentElement of the altTable table will be set to the index of the searched table’s CurrentElement. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value greater than the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupLE<T>(Table<T> table, T searchArgument)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value less than or equal to the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupLE<T, U>(Table<T> table, T searchArgument, Table<U> altTable)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| Table<U> |
altTable |
If the Lookup is successful, the CurrentElement of the altTable table will be set to the index of the searched table’s CurrentElement. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value less than or equal to the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupLT<T>(Table<T> table, T searchArgument)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value less than the searchArgument is found, false otherwise. |
Searches the Table for the specified search argument.
bool LookupLT<T, U>(Table<T> table, T searchArgument, Table<U> altTable)
Parameters
| Type |
Parameter name |
Description |
| Table<T> |
table |
The table to search. |
| T |
searchArgument |
The element value being searched for in the array. |
| Table<U> |
altTable |
If the Lookup is successful, the CurrentElement of the altTable table will be set to the index of the searched table’s CurrentElement. |
Returns
| Type |
Description |
| Boolean |
Returns true if a value less than the searchArgument is found, false otherwise. |