delay
procedure delay(millis: integer);
Suspends the execution of a program for the given time in milliseconds.
To display a message on to the screen, wait 2 seconds, and then close MIDlet, use the following code:
begin
drawText('Hello world', 0, 0);
repaint;
delay(2000);
end.