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

exit or return ?

Former Member
0 Likes
1,512

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
Read only

Former Member
0 Likes
1,440

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
Read only

Former Member
0 Likes
1,440

You should use EXIT.....

Read only

Former Member
0 Likes
1,440

Hi,

use Exit statement.

Read only

Former Member
0 Likes
1,441

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

Read only

Former Member
0 Likes
1,440

Exit was my requirement

Read only

Former Member
0 Likes
1,440

hi,

U can use

Exit And Return both

Thanks,

Dharmishta