GetItemValue
%GetItemValue function
Function
The function retrieves the value of the structure item with a specified row and column.
Declaration
UNIVAL %GetItemValue(
HBJ in objRef,
INT in row,
INT in col[,
BOOL in bHBJ = @FALSE]
)Parameters
objRef | Reference to an object of Structured variable type. |
row | Row index. |
col | Column index. |
bHBJ | If the value is @FALSE or the parameter is not specified, the function returns the value of the item. |
Example
The function provides an alternative method of access to items of a structure using the row and column index. In this context, the structure is taken as a value matrix.
The following assignments:
TEXT _i_i := SV.Structure[2]^Text_i := %GetItemValue(SV.Structure\HBJ, 2, 1)
return the same values.
See also the attribute: \HBJ