UNIFACE 8.1.01 - $occHandle

[back to index]


$occhandle

Return the handle of the current occurrence of the requested entity.

Synopsis

$occhandle{(LitEntityName)}

Use

Allowed in all components types.

Description

The function $occhandle returns the handle of the current occurrence of the requested entity.

If the LitEntityName argument is provided, it must be one of the following:

If the LitEntityName argument is omitted, the current entity is used.

Return value

The function $occhandle returns the handle of the current occurrence of the entity of LitEntityName.

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:

-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.

-1102

<UPROCERR_ENTITY>

An incorrect entity name was provided; either the entity name is not valid syntactically or the entity is not available in the component.

     

 

Related Information

Proc:

$collhandle

$instancehandle