View previous topic :: View next topic |
Author |
Message |
pban92
Joined: 23 Nov 2009 Posts: 38
|
Posted: Wed Feb 03, 2010 6:44 pm Post subject: Any alternative to PAUSE ? |
|
|
The syntax PAUSE at the end of any fortran code makes the on-screen output stand still instead of flashing momentarily with the prompts:
Quote: |
*** 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! |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed Feb 03, 2010 10:20 pm Post subject: |
|
|
If you run the program from a DOS box (Command Prompt window) or from Plato then you do not need the PAUSE. |
|
Back to top |
|
|
pban92
Joined: 23 Nov 2009 Posts: 38
|
Posted: Wed Feb 03, 2010 10:30 pm Post subject: |
|
|
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! |
|
Back to top |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Thu Feb 04, 2010 12:16 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|