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 should be used in the Try … Except … Finally … End Try statement for correct finishing of a long-term process if exception is thrown.

See also:

Developers Knowledge Base