today, I am writing code,I found a question ,
for example:
i integer
for i:=1 to 3 do begin
if i=2 then
continue??here is error
end
so please tell me in C/AL replace "continue" the method,it is like "skip" method
I d'like to skip this circle,not like "break",so give me a idea,thanks
0
Answers
and do the part you wanted to do for 1 and 3 within that section.
SKIP is used to skip a record in fashion of CurrReport.SKIP, or DataPort.SKIP, etc... Since you are doing i := 1 TO 3, its going to go through 1, 2, and 3 no matter what, that's what its being told to do.
What exactly are you trying to do with it so we can better help and understand it?
Kevin
"Profanity is the one language all programmers know best."
RIS Plus, LLC
if 1 then do something
if 2 then confirm (would you like to go to 3 or would you like to do something else)
I might be right on or way off
http://www.BiloBeauty.com
http://www.autismspeaks.org
Not sure you explained well because if i = 1 to 3 it will always hit 2 what do you want to skip.
these vague theoretical hypotheticals give me a headache-ical
http://www.BiloBeauty.com
http://www.autismspeaks.org
RIS Plus, LLC