GetSelfHBJ
%GetSelfHBJ function
Function
The function retrieves the unique identifier (HOBJ) of the object within the frame of which the script is interpreted (object of Event type or active picture).
Declaration
HBJ %GetSelfHBJ(
BOOL in bBaseHBJ := @TRUE
)
Parameters
bBaseHBJ | Optional parameter. Possible values:
|
Example
For the script of the E.Test event, there is valid:
INT _iINT _i1_i := E.Test\HBJ_i1 := %GetSelfHBJ()IF _i = _i1 THEN ; condition is always trueENDIF
If given object is not open as an instance, then %GetSelfHBJ(@TRUE) = %GetSelfHBJ(@FALSE).
Note
See: %HI_GetSelfInstanceId().
Related pages: