Share via


FormRun.unLock Method

Unlocks a form.

Syntax

public void unLock([boolean arrangeNow])

Run On

Client

Parameters

  • arrangeNow
    Type: boolean
    A Boolean value that indicates whether the form is arranged when it is unlocked; optional. The default value is true.

Remarks

By locking a form, you prevent another user from updating that form. To lock a form, call the FormRun.lock method.

Examples

The following example shows a call to the unLock 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(); 
     
    formRun.lock(); 
    // Add code to modify the form object. 
    formRun.unLock(); 
}

See Also

FormRun Class

FormRun.lock Method