>Hi,
>I have a loop to display out the record on a defined window,
>but I want to pause the loop by pressing the PAUSE key of the
>keyboard. I try to press the PAUSE key, but the loop continue.
>How to code it ?
>
>Please advise.
>
>Derek
Repeatedly use the inkey() function, to check whether the user pressed a certain key.
For the actual pause, one option might be a MessageBox(), with a message like [Click "OK" to Continue.], or a wait window, with a message "Press any key to continue".
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)