GetRecordStructHBJ

GetRecordStructHBJ

%GetRecordStructHBJ function


Function

This function returns a unique identifier of structure definition in the System (HOBJ).

Declaration

HBJ %GetRecordStructHBJ( in recordVal )

Parameter

recordVal

Reference to a local variable of the Record type through HOBJ - see the example.

Description

The function gets the unique identifier of structure definition (HOBJ) according to the reference to local variable Record or the object of Structure variable type through HOBJ. If the type of given local variable is different than RECORD, the function returns the invalid value.
If the input parameter is the Structured variable, the function sends a demand to the  D2000 Server to get the unique identifier of structure definition  (HOBJ).

Example

PROCEDURE Proc1(RECORD NOALIAS () _arr) INT _iHbj1 INT _iHbj2 INT _iHbj3 _iHbj1 := SD.ARR_INT_REAL\HBJ _iHbj2 := %GetRecordStructHBJ(SV.Struktura\HBJ) _iHbj3 := %GetRecordStructHBJ(_arr\HBJ) ; .... ; .... ; .... REDIM _arr[_arr\DIM + 1] END Proc1 BEGIN RECORD NOALIAS (SD.ARR_INT_REAL) _arr1 ; .... ; setting the value of local variable _arr1 according to the object value ; REDIM _arr1[2] CALL Proc1(_arr1) END

 

The local variables _iHbj1, _iHbj2, _iHbj3 must be the same. It is assumed, the SV.Struktura is of SD.ARR_INT_REAL type.