Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%SetLocalItemValue function


Function
The function sets a given item (defined by the row and column number) of the local variable of the Record type.
Declaration


Blok kódu
languageesl
themeConfluence
UNIVAL%SetLocalItemValue(
   HBJ in _localStruct, 
   INT in row, 
   INT in col, 
   UNIVAL in newItemVal
 )
 
or
 


Blok kódu
languageesl
themeConfluence
UNIVAL %SetLocalItemValue(
   HBJ in _ident, 
   INT in row, 
   INT in col, 
   UNIVAL in newItemVal
 )
Note


_localStructLocal variable of the Record type.
rowRow index.
colColumn index.
newItemValExpression of the optional type.
_identUnique 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:

 


Blok kódu
languageesl
themeRDark
RECORD (SD.RecordDef) _record
 TEXT _text 
 
 _record^Text := "description"
 _text := %SetLocalItemValue(_record\HBJ, 1, 1, "description")