AUTOREFRESH Clause

 

Productivity and performance of a program can be improved by managing the refreshment modes. The first refreshment mode allows you to reach maximum performance, since the program does not need to display anything until it waits for the user input and thus the calculations can go faster.

Lycia offers three refreshment modes:

 

OPTIONS AUTOREFRESH 1

 

 

OPTIONS AUTOREFRESH 2

 

 

OPTIONS AUTOREFRESH 3

 

If the first refreshment mode is on, the long SQL queries or other time consuming processes will prevent anything from displaying as long as they are running. If you want to see the output of the display statements while no user interaction statement is in effect, call the ui.interface.refresh() method. It will show the output of all displays executed between the previous user interaction statement and the place this method was called at.

Thus, if you want to keep track of the long database interactions, for example, and display the progress, you should either use the third or second refreshment mode, or use the refresh() method after displaying.