View previous topic :: View next topic
|
Author |
Message |
mf_me
New User
Joined: 18 Jul 2005 Posts: 3
|
|
|
|
1. what is the difference between stop run n exit porgram,
2.Is it true that at the end of the program we should ideally use Exit program instead of stop run.
3. If a program that is not being called by any other program has go back coded, will it go in a loop ?
4. and should we code go back in all called modules?
is it true that if we code stop run, the control will not be passed to the caling module |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
shobam
New User
Joined: 18 Jul 2005 Posts: 34 Location: CN
|
|
|
|
With GOBACK , the control will go back to the program which is calling and if it is not called by any program the control will return back to the system.
It wont go in a LOOP.
Thanks & Regards
Shobam |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hi MF_Me!
Quote: |
3. If a program that is not being called by any other program has go back coded, will it go in a loop ? |
If we code Go Back in a stand alone program it will not go into loop. Just the control goes back to OS. Thats it. But generally we follow coding Go Back in any program. So in future if you need to call this program by another, you dont have to worry and even there is no harm in coding Go Back in a stand alone program
Quote: |
4. and should we code go back in all called modules?
is it true that if we code stop run, the control will not be passed to the caling module |
Yes. We should code Go Back in all called modules. If not the control will not be transfered to calling program.
You can understand the meaning, by the wording even. Stop Run indicates stop the run(control)..And Go Back indicates, return the control back.
Hope this helps you. |
|
Back to top |
|
|
|