Forum Discussion

Lorenzo Kim's avatar
Lorenzo Kim
Bronze Contributor
May 11, 2018
Solved

to pause (loop) until any key is pressed

to make a pause in FoxBase programming would look something like this:

 

x= 0

do until keypressed

   x = x + 1

enddo

 

this loop will disengage when any key is pressed

 

HOW DO YOU WRITE THIS CODE IN VBA?

many thanks

  

   

  • A quick and dirty one is showing a message box asking the user to hit enter:
    MsgBox "Please press Enter to continue", vbInformation+vbOKOnly

2 Replies

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor
    A quick and dirty one is showing a message box asking the user to hit enter:
    MsgBox "Please press Enter to continue", vbInformation+vbOKOnly