Is there a way to exit a procedure? In Delphi I can do something like:
I'd like to duplicate the Exit line in this section of Java:
Thanks for any insight! I've found the Break command, but that only Breaks a for loop, right? I've seen System.Exit, but that appears to exit the application and I don't want to do that.
Leslie
In an open world there's no need for windows and gates
Code:
[navy][i]// for automatic syntax highlighting see faq102-6487
[/i][/navy][b]procedure[/b] TForm1.Button1Click(Sender);
[b]begin[/b]
[b]if[/b] booSomething [b]then[/b]
[b]begin[/b]
[navy][i]//some code
[/i][/navy] Exit; <- Exits the [b]procedure[/b] without executing [teal]'even more code'[/teal]
[b]end[/b]
[b]else[/b]
[navy][i]//some other code
[/i][/navy] [b]end[/b];
[navy][i]//even more code
[/i][/navy][b]end[/b];
I'd like to duplicate the Exit line in this section of Java:
Code:
private void ProcessDocketing (String ChargeSeq ){
if (IsDimissed(ChargeSeq)){
DismissCharge(ChargeSeq);
[b]NowExitprocedure[/b]
}
if (IsReduced(ChargeSeq)){
ReduceCharge(ChargeSeq);
}
}
Thanks for any insight! I've found the Break command, but that only Breaks a for loop, right? I've seen System.Exit, but that appears to exit the application and I don't want to do that.
Leslie
In an open world there's no need for windows and gates