handle

Uniface data type containing a single reference to a component instance, entity, occurrence, field, or OCX object.

In a params block:

handle  ParameterName : Direction

In a variables block:

{public | partner}  handle  {VariableName}

Use

Use in params and variables blocks to define the data type of a parameter or variable. The data type can be selected when defining non-database fields, global variables, and component variables.

Description

Handles can be designated as public or partner. Public handles can only access public operations. Partner handles can access partner operations and public operations.

Note:  Do not convert handle to string and back.

handle

In the following example, the handle of a Uniface component is passed as a parameter to the exec operation of another component and assigned to a component variable. The handle in the component variable is used to activate operations on the component.

operation exec
  params
  		handle pWriter	:	IN 
  endparams

  $hWriter$ = pWriter 
  $hWriter$->startdocument("true")
end; exec

Related Topics