lockExceptionHandler(le: LockException io): Integer;
The lockExceptionHandler method of the Global class is an exception handler that can be used to retry a lock operation.
The following example shows the use of this method to arm the exception handler.
buttonRead_click(btn: Button input) updating; vars cust : Customer; customerName : String; begin // Initiate the exception for locking errors on LockException do global.lockExceptionHandler(exception); // Define the customer object that has been selected if listBoxCustomer1.listIndex > 0 then cust := listBoxCustomer1.itemObject[listBoxCustomer1.listIndex].Customer; customerName := cust.name; else app.msgBox("Please select a Customer", "No Customer Selected", MsgBox_OK_Only); return; endif; end;
Each process can have up to 128 global exception handlers armed at any one time.