View previous topic :: View next topic
|
Author |
Message |
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
can any one specify the difference between [b]continue[/b] and [b]next scentence [/b]with an example... |
|
Back to top |
|
|
seegovind
New User
Joined: 02 Apr 2005 Posts: 3
|
|
|
|
Both continue and next sentence will go to the next statement.But the slight difference is that Next sentence can be used for future expansion.
Regards. |
|
Back to top |
|
|
prabhucs01 Warnings : 1 New User
Joined: 07 Mar 2005 Posts: 43
|
|
|
|
any examples please.... |
|
Back to top |
|
|
squid_rocks
New User
Joined: 21 Mar 2005 Posts: 15 Location: Pune, INDIA
|
|
|
|
Hi,
The actual difference is that continue will take you to the next "logical" statement and next statement will essentially look for a '.' (period) and take the control to the statement after the peroid.
IF A=B
IF C=D
perform some-para
ELSE
IF G=H
continue
ELSE
next sentence
END-IF
END-IF
ELSE
perform some-para-1
END-IF.
I understand it is a stupid example, but then I could come up with this one at the moment.
What will happen here is the control will go to next logical statement after first END-IF.
The next sentence will take the control out of the complete IF-ELSE-END-if... |
|
Back to top |
|
|
ashay Warnings : 1 New User
Joined: 18 Mar 2005 Posts: 4 Location: pune
|
|
|
|
hiiiiiii
actually continue will continue next logical statement n next sentence will continue after the "."(period). |
|
Back to top |
|
|
nagireddynarva
New User
Joined: 30 Apr 2005 Posts: 5 Location: hyderabad
|
|
|
|
here is an example...
perform para-a varying i from 1 by 1 until i=40.
perform para-b.
para-a.
if i=20
next sentence/continue.
para-b.
display i.
in the above mentioned code if next sentence is coded the value of i
is 20 and it gets displayed...if continue is coded the value of i becomes
40.
i hope this example will help u.... |
|
Back to top |
|
|
|