- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello -
I understand that they are obsolete, BUT
they are useful for marking places in the execution where some attention is needed, such
as error meesages. Example:
PAUSE "number out of range" or:
PAUSE "possiblesubscript overflow"
You suggested read (*,*) but that does not not convey any useful information.
so is there something else that would be just a suseful?
I understand that they are obsolete, BUT
they are useful for marking places in the execution where some attention is needed, such
as error meesages. Example:
PAUSE "number out of range" or:
PAUSE "possiblesubscript overflow"
You suggested read (*,*) but that does not not convey any useful information.
so is there something else that would be just a suseful?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What one normally does in this situation is to write out an error/informative message before read (*,*). Then, before responding to the READ statement, other appropriate action may be taken if needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or if you know you are using Windows with an interactive user, a call to the Windows API routine MessageBox is easy from Fortran.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page