2009 Feb 06 7:11 AM
Hi ALL,
I have a stmt call screen 100 inside a subroutine.On this screen i have a continue button.When i press the continue button i want the stmts below this call screen 100 stmt and all other subroutines to be executed.I dont want to stop as soon as my call screen is executed.
As this stmt is inside a subroutine, i cannot place all the other subroutines in the PAI of this screen 100 .
Pls suggest.
Hi ALL,
I have a stmt call screen 100 inside a subroutine.On this screen i have a continue button.When i press the continue button i want the stmts below this call screen 100 stmt and all other subroutines to be executed.I dont want to stop as soon as my call screen is executed.
As this stmt is inside a subroutine, i cannot place all the other subroutines in the PAI of this screen 100 .
Pls suggest.
2009 Feb 06 7:13 AM
hi,
then use set screen instead of call screen...
because if u use set screen, it will execute next statement after set screen and then control goes to the screen given in set screen...so ur requirements is fulfilled by using set screen..
Rgds.,
subash
2009 Feb 06 7:19 AM
Hi,
Use it this way:-
Say you have for PAI module code:-
module m_100.
perform sub1.
perform sub2.
perform sub3.
endmodule.
form sub1.
"code
set screen <screen_number>.
"code
endform.
form sub2.
"code
endform.
form sub3.
"code
"code
leave screen.
endform.
This will execute all the code for sub1 and the set screen say 200 and will execute rest code for sub2 and sub3. When statement leave screen is encountered then the control moves to screen 200.
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |