Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

diff between call screen and leave to screen

Former Member
0 Likes
1,078

hello all,

can some one tell me the diff between call screen and leave to screen?

thanks in advance

seenu

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
1,045

hi,

CALL SCREEN 200

If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)

and moreover u have options using this

CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2

SET SCREEN 200

with the above statement , it will goto screen 200 and screen 100 no more remains

And no additional options for this

LEAVE SCREEN

Leaves the current screen and processes the next screen.

LEAVE TO SCREEN 200

it leaves the current screen and processes screen 200

rgds

Anver

hello all,

can some one tell me the diff between call screen and leave to screen?

thanks in advance

seenu

6 REPLIES 6
Read only

anversha_s
Active Contributor
0 Likes
1,046

hi,

CALL SCREEN 200

If we write this statement in screen 100 ,it will goto screen 200 and it will retain screen 100(ie u can come back)

and moreover u have options using this

CALL SCREEN 200 STARTING AT x1 y1 ENDING AT x2 y2

SET SCREEN 200

with the above statement , it will goto screen 200 and screen 100 no more remains

And no additional options for this

LEAVE SCREEN

Leaves the current screen and processes the next screen.

LEAVE TO SCREEN 200

it leaves the current screen and processes screen 200

rgds

Anver

Read only

Former Member
0 Likes
1,045

Hi,

with "call screen" you call screen and you return in previous screen

with "leave to screen" you GO to new screen you don't return in previous screen

Read only

Former Member
0 Likes
1,045

Hello Seenu,

Call Screen will stack the current screen and navigate to the screen mentioned with Call Screen statement. Using Set Screen 0. Leave Screen you will be able to return to the screen where the Call Screen statement was called.

Leave to Screen will not stack the current screen and will navigate to the screen mentioned with Leave to Screen statement. Using Set Screen 0. Leave Screen you will not be able to return to the original screen.

Regards,

Manoj

Read only

Former Member
0 Likes
1,045

Hello,

LEAVE TO SCREEN statement exits the current screen and calls the dynamic next screen, which you specify as part of the statement.

CALL SCREEN statement starts new screen sequence..Program continues processing after the call screen statement.

Thanks.

Read only

Former Member
0 Likes
1,045

hello seenu,

<b>call screen</b>: when u call a screen by call screen it will migrate to the screen from present screen but we have to use set screen 0 or leave screen 0 to return to the called screen.

<b>leave to screen</b>:

Leaves the current screen and processes the screen you called.

If the screen called is ' 0 ', processing in CALL mode continues after the CALL SCREEN statement. Otherwise, you branch to the transaction selection screen.

with regards,

magesh