Return the handle of the requested instance.
$instancehandle
{(
InstName)
}
Allowed in all component types.
The function $instancehandle
returns the handle of the requested instance.
If the InstName argument is provided, it must be one of the following:
$instanceparent(MYINSTANCE)
.$instancehandle("MYINSTANCE")
.$instancehandle
($1)
,
where $1 contains "MYINSTANCE"
.$instancehandle
(PARAM1)
,
where PARAM1 contains "MYINSTANCE"
.$instancehandle
($instancename)
,
where $instancename
is "MYINSTANCE"
.$instancehandle
(@$1)
, where $1 contains "FLD1"
and FLD1 contains "MYINSTANCE"
.If the InstName argument is omitted, the current instance is used.
The function $instancehandle
returns the handle of the instance with a name InstName.
An null handle is returned if an error occurred or in the following circumstances:
If an error occurs during the evaluation of this function, the
function $procerror
contains a negative value
that identifies the exact error. Values of $procerror
commonly returned by this function are:
-57 |
<UACTERR_NO_INSTANCE> |
The named instance cannot be found in the component pool. |
-1101 |
<UPROCERR_FIELD> |
An incorrect field name was provided; either the field name is not valid syntactically or the field is not available in the component. |
Proc: