GetLocalItemValue
%GetLocalItemValue function
Function
The function retrieves the value of the specified item of local variable of Record type.
Declaration
UNIVAL %GetLocalItemValue(
HBJ in _localStrut,
INT in row,
INT in col
)
or
Declaration
UNIVAL %GetLocalItemValue(
HBJ in _ident,
INT in row,
INT in col
)
Parameters
_localStruct | Local variable of Record type. |
row | Row index. |
col | Column index. |
_ident | Unique identifier of the structured local variable that is acquired by the attribute \HBJ. |
Example
The function provides an alternative method for accessing items of a local variable using row and column index. In this case, a structure is understood as a value matrix.
The following assignments:
RECORD (SD.RecordDef) _record
_record^Text := "description"
TEXT _text
_text := _record^Text
_text := %GetLocalItemValue(_record\HBJ, 1, 1)
get the same values.
Related pages: