Timing of setStatusText message display

When processing a block of code that takes a long time to process, I would like to display messages (in the status bar) to keep the user informed.

My code looks like this:

application.setStatusText(‘Processing…’);
while (some condition) {
// processing code goes here
if (number of records processed is a multiple of 100) application.setStatusText(‘xxx records processed…’);
}
application.setStatusText(‘Processing Complete…’);

Servoy does not update the status bar in a timely manner (i.e. when the statement is processed). Is there a way around this?

yes, you have todo application.updateUI() right after you update the statusbar text

Harjo,

That works! Thanks for your help. It is well appreciated.