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.
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...
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....