%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
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
_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:

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

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .