%GetItemType function


Function
The function detects a type of entered column of the structure or structured variable.
Declaration
INT %GetItemType(
   HBJ in  objRef,
   INT in col
 )

Parameters
objRef Expression of HBJ type - reference to object of Structured variable type or Structure definition.
col Column index.

Description
The function gets back an invalid value:

  • if objRef is the reference to unknown object, or the object is not Structured variable type or Structure definition,
  • if the value of parameter col is out of range which is given by columns number of relevant object.

    Value type is expressed by integer according to following table:

     
    Column type

    Value

    Logical 0
    Integral 1
    Real 2
    Absolute time 3
    Relative time 4
    Text 5
    Object 6

  • Example
     RECORD (SD.Struct)_rec
     INT _itemType
     
     _itemType := %GetItemType(SD.Struct\HBJ, 1)
     _itemType :=  %GetItemType(SV.Struct\HBJ, 3)
     _itemType :=  %GetItemType(_rec\HBJ, 2)
     

    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ť .