Porovnávané verzie

Kľúč

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

%GetItemValue function


Function
The function retrieves the value of the specified structure item with a specified row and column.
Declaration


Blok kódu
languageesl
themeConfluence
UNIVAL  %GetItemValue(
   HBJ in objRef, 
   INT in row, 
   INT in col[,
   BOOL in bHBJ = @FALSE]
)
Parameters


objRefReference to object of Structured variable type.
rowRow index.
colColumn index.
bHBJIf the value is @FALSE or parameter is not specified, the function returns value of the field.
If the value is @TRUE, the function returns the following according to the column type:
  - Column type Object: function returns the object identifier (HBJ), to which the item refers
to the field

  - Other column type: function returns
the
an invalid value
Example
The function provides an alternative method of the access to items of a structure using the row and column index. In this context, structure is taken as a value matrix.

The following assignments:

 


Blok kódu
languageesl
themeRDark
TEXT _i


Blok kódu
languageesl
themeRDark
_i := SV.Structure[2]^Text


Blok kódu
languageesl
themeRDark
_i := %GetItemValue(SV.Structure\HBJ, 2, 1)
 

get return the same values.

See also the attribute: \HBJ