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-run 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 are to be used in the operator Try … Except … Finally … End Try to correctly finish a long-term process if an exception occurs.

See also:

Developers Knowledge Base