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: 

exit or return ?

Former Member
0 Kudos

Hi all,

I have a loop and a case .

Loop at table.

Case table-data:

when 1

when 2.

Endcase

Enloop.

My reqmnt is , when i m in case and I find either 1 or 2, i want to exit the case and the loop both.

Wat should I use, exit or return ?

thanks,

RS

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use "continue" to come out from the loop pass adn "exit" to come out from loop.

Edited by: chandra madapati on Sep 8, 2008 1:51 PM

5 REPLIES 5

Former Member
0 Kudos

You should use EXIT.....

Former Member
0 Kudos

Hi,

use Exit statement.

Former Member
0 Kudos

Use "continue" to come out from the loop pass adn "exit" to come out from loop.

Edited by: chandra madapati on Sep 8, 2008 1:51 PM

Former Member
0 Kudos

Exit was my requirement

Former Member
0 Kudos

hi,

U can use

Exit And Return both

Thanks,

Dharmishta