In this article:

General Information

Description

Indicating Long-Term Processes

Article number: KB000001

General Information

Related blocks:

Description

There are two methods of indication of long-term processes on creating custom forms in Fore:

Example of code:

Sub OperationX;
Begin
    WinApplication.WaitCursor := True;
    Try
        // Long-term operation
    Finally
        WinApplication.WaitCursor := False;
    End Try;
End Sub OperationX;

After finishing an operation you need to call the EndOperation method to return the form to initial state.

Example of code:

Sub OperationY;
Begin
    BeginOperation(NotificationEdit.Text);
    Try
        // Long-term operation
    Finally
        EndOperation;
    End Try;
End Sub OperationY;

These methods must be used in the Try … Except … Finally … End Try operator to correctly finish a long-term process if an exception is thrown.

See also:

Developers Knowledge Base