%OpenRefToObject function
Related pages:
BOOL %OpenRefToObject( HBJ in _hbj, BOOL in _bSynchro )
_hbj | Value of the HBJ type or INT type. |
_bSynchro | Value of the Boolean type. |
INT _val ALIAS _a SET_a AS (1234) ; incorrect row _val:= _a
BOOL _openOk INT _val ALIAS _a SET _a AS (1234) _openOk:= %OpenRefToObject(_a\HBJ,@TRUE) IF _openOk THEN ;the row is correct _val:= _a ELSE ;an object with HOBJ 1234 does not exist !!! ENDIF
If the parameter is set on @FALSE the script will send the request for opening the object and will proceed. The return value of the function is @TRUE and that is why it is not possible to check the existence of the object with defined HOBJ.
Related pages:
Pridať komentár