The function %HI_GetOwnerInstance returns an instance of the picture which a current picture is inserted as a subpicture to.
Declaration
INT %HI_GetOwnerInstance(
[BOOL in bPhysical := True]
)
Parameters
bPhysical
If the value of parameter is True, the function returns the instance number of the picture which the current picture is inserted to. If the value of parameter is False, the function returns the required instance number of the picture which the current picture is inserted to.
Description
If the picture is not opened as a subpicture, the return value is 0.
This function exists also in the %HIX_ version. It enables to find out HBJ also from other pictures than the current subpicture. HIX function works unless the picture, addressed via [hobj, instanceId], contains ESL script.
Pridať komentár