Share via


FormRun.lock Method

Prevents another user from updating a form.

Syntax

public void lock()

Run On

Client

Examples

The following example shows a call to the lock 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.unLock Method