forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Any alternative to PAUSE ?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
pban92



Joined: 23 Nov 2009
Posts: 38

PostPosted: Wed Feb 03, 2010 6:44 pm    Post subject: Any alternative to PAUSE ? Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Wed Feb 03, 2010 10:20 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
pban92



Joined: 23 Nov 2009
Posts: 38

PostPosted: Wed Feb 03, 2010 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Thu Feb 04, 2010 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group