Vidíte historickú verziu tejto stránky. Pozrite si aktuálnu verziu.

Porovnať s aktuálnou verziou Zobraziť históriu stránky

Verzia 1 Aktuálny »

%SetLocalItemValue function


Function
The function sets given item (defined by the row and column number) of local variable of Record type.
Declaration
UNIVAL%SetLocalItemValue(
   HBJ in _localStruct, 
   INT in row, 
   INT in col, 
   UNIVAL in newItemVal
 )

 
or
 
UNIVAL %SetLocalItemValue(
   HBJ in _ident, 
   INT in row, 
   INT in col, 
   UNIVAL in newItemVal
 )

Note
_localStruct Local variable of Record type.
row Row index.
col Column index.
newItemVal Expression of optional type.
_ident Unique identifier of the structured local variable, that is acquired by the attribute \HBJ.

Example

The function provides the alternate method for accessing to items of a local variable using row and column index. In this context, structure means a value matrix.
Return code of the function is previous value of the structure variable item.

Assignments used in the example are equivalent:


 
RECORD (SD.RecordDef) _record
 TEXT _text 
 
 _record^Text := "description"
 _text := %SetLocalItemValue(_record\HBJ, 1, 1, "description")

  • Žiadne štítky