Porovnávané verzie

Kľúč

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

%StrToHBJ function


Function
The function returns the unique identifier (HOBJ) of the system object given by its name.


Declaration


Blok kódu
languageesl
themeConfluence
HBJ%StrToHBJHBJ %StrToHBJ(
   TEXT in objName
 )


Parameters


objNameText expression.


Description
The function sends a query to the D2000 Server process to detect the unique identifier of the system object defined by the parameter objName. If the object doesn't exist or the parameter is an invalid value, the function returns invalid value.
Example


Blok kódu
languageesl
themeRDark
INT _hobj
 
 _hobj := %StrToHBJ("Sec")
 IF  _hobj # Sec\HBJ THEN
   ; error (condition must not be met)
   _hobj := 0
 ENDIF


 


In the example, the object's HOBJ is detected in two ways.