ui.Interface.refresh

Synchronize the user interface with the front-end.

Syntax

ui.Interface.refresh()

Usage

The ui.Interface.refresh() class method forces a synchronization of the abstract user interface tree with front-end .

By default, during an interactive instruction like DIALOG, the AUI tree is refreshed automatically when the runtime system gets the control back after user code execution. There is no need to call the refresh method in regular code.

Important: This method should be used with care; It is only provided to synchronize with the front-end in specific cases. For example, when you need to display batch processing information to the user. Calling this method too frequently will produce a lot of network traffic.

Example

FOR i=1 TO 10
   DISPLAY i TO step_num
   CALL ui.Interface.refresh()
   SLEEP 1
END FOR