Application Development 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: 

Difference between leave to screen 9000 and call screen 9000

Former Member
0 Kudos

Hello All,

Could you please give the difference in the following two statements:

Leave to screen 9000

Call screen 9000.

Your help would be appreciated.

Thanks in advance,

Regards,

Anju

6 REPLIES 6

Former Member
0 Kudos

Leave to screen 9000 You cannot come back to the called screen when you hit back

Call screen 9000.

You cancome back to the called screen when you hit back

santhosh

Former Member
0 Kudos

Hi,

Call Screen

Calling a single screen is a special case of embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely, you can use the CALL SCREEN statement with the STARTING AT and ENDING AT

CALL SCREEN 9000.

CALL SCREEN 9000 STARTING AT 10 10 ENDING AT 20 20.

LEAVE SCREEN

statement ends the current screen and calls the subsequent screen.

LEAVE SCREEN.

LEAVE TO SCREEN 9000.

Hope it will helps

Former Member
0 Kudos

Hi,

Call Screen

Usually used for pop up screens. Many times, there is a need for user to enter additional information or secondary information on another screen or pop up screen. Once the user enters the data, he should be able to go back to main screen or to the screen where he started. This is not possible by using SET SCREEN. CALL SCREEN achieves this functionality.

Syntax

Call Screen 200.

Will simply call a screen number 200 from a main screen. Once the screen is displayed the user can enter all the data and return to the main screen by clicking BACK button.

Leave to screen

To SET a new screen without processing current screen:

LEAVE TO SCREEN 200.

Regards,

Bhaskar

Former Member
0 Kudos

Hi anju,

CALL SCREEN 1000 calls the screen number 1000 from main screen and it will be back to main screen when you wish to come back.

LEAVET TO SCREEN 1000 calls the screen number 1000 and it wont come back to main screen if you want to come back.

It leaves current screen and calls to next screen 1000.

Thanks,

Surendra babu vemula

Former Member
0 Kudos

done

0 Kudos

done

What is this?