E r g e b n i s / R e s u l t
Pause the program
B e s c h r e i b u n g / D e s c r i p t i o n
Pauses the computer for 0.5 seconds.
This function once allowed users to specify the pause but when SPI
released OA4 they broke something. Calling the function crashed Open
Access, so we have altered the function to pause for a fixed period of
time. Call Pause repeatedly to get longer pauses.
This is useful when displaying a copyright message for a fixed amount
of time. Follow a pause with a keyboard buffer flush as the user might
have pressed a key in impatience.
S y n t a x
Code:
bool = call('PAUSE') P a r a m e t e r
There are no parameters for this procedure
R e t u r n s
The procedure returns a Boolean or True/False value.
TRUE - the procedure worked correctly.
FALSE - a problem occurred.
B e i s p i e l / E x a m p l e
Code:
attach 'KEYBOARD'
! this code displays a message and pauses the computer for 2 seconds
! then it clears the keyboard buffer as the user might have hit a key
put 'Copyright 1996 XYZ Corp'
x = call ("PAUSE")
x = call ("PAUSE")
x = call ("PAUSE")
x = call ("PAUSE")
x = call ("FLUSHBUF")
detach 'KEYBOARD' Q u e r v e r w e i s / C r o s s R e f e r e n c e
FLUSHBUF