View previous topic :: View next topic
|
Author |
Message |
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
suppose in the program if i give GO BACK instead of STOP RUN what will happens |
|
Back to top |
|
|
Ramya A
Active User
Joined: 26 Jul 2004 Posts: 104
|
|
|
|
GOBACK statement ends the application if it is in the main program and returns to the calling program if it is in a called program.
STOP RUN just ends the application.
Quote: |
GOBACK and STOP RUN performs similar operations when it is coded in the main program. |
Guess your question is answered. |
|
Back to top |
|
|
karthi_ind
Active User
Joined: 24 Feb 2004 Posts: 131 Location: Chennai
|
|
|
|
hi
Can anyone tell
Whatz the diff. between go back and exit program.
They both works similar (I thnk)
Thank u
Karthi |
|
Back to top |
|
|
Manabendra
New User
Joined: 09 Sep 2005 Posts: 1
|
|
|
|
for a stand alone program, it has no difference.
But in a called program, for example : A program calls B program. in B program, if "stop run" is used, then it will not return to program A, instead it will return to the OS. That's why in a called program, STOP RUN is never used. |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hi karthi!
Quote: |
Whatz the diff. between go back and exit program. |
There is no difference between Goback and Exit program. Both works in a similar way if they were coded in the called program. Exit program/Goback is used to exit a program that has been called by another program.
But When Exit Program is coded in a stand alone program, Exit program is ignored and the process may continue. So it is always better to code GoBack in any kind of program (standalone/called program).
HTH, |
|
Back to top |
|
|
|