Silverfrost Forums

Welcome to our forums

Any alternative to PAUSE ?

3 Feb 2010 5:44 #5873

The syntax PAUSE at the end of any fortran code makes the on-screen output stand still instead of flashing momentarily with the prompts:

*** Pause: Enter system command or press ENTER key to restart:

This can be checked by running the application file generated after the first succesful compilation.

My question, is there any elegant way other than PAUSE syntax to hold the on-screen output without showing the texts as quoted above?

Kind regards!

3 Feb 2010 9:20 #5877

If you run the program from a DOS box (Command Prompt window) or from Plato then you do not need the PAUSE.

3 Feb 2010 9:30 #5878

I know that but there is a *.exe (application file) created after compilation. Now when I click that exe file it just momentarily flashes rather than staying on screen. I hope my question is a bit more clear. Thanks again!

3 Feb 2010 11:16 #5879

If you have a READ statement before the program gets to END or STOP, then it will pause to wait for input. You can do a WRITE first to tell the user what to do, which is effectively the same as a user-customised PAUSE.

Eddie

Please login to reply.