FormRun.detach Method

Increases the number of references to a FormRun object.

Syntax

public void detach()

Run On

Client

Remarks

The increase in the number of references to a FormRun object prevents the release of object memory during garbage collection when the FormRun object goes out of scope.

Call the detach method to display a run-time form.

Examples

The following example shows a call to the detach method.

void runForm(Form form) 
{ 
    Args args; 
    FormRun formRun; 
  
    args = new Args(); 
    args.object(form); 
 
    // Create the run-time form. 
    formRun = new FormRun(Args); 
 
    formRun.run(); 
    formRun.detach(); 
}

See Also

Reference

FormRun Class