Dgby714
2010-04-21 12:50:03
Hmm is there a way to Exit from the current procedure and the procedure that called it? without making a function and a if stuff then exit;
kinda like
kinda like
procedure OtherStuff;
begin
WriteLn('OtherStuff Start...');
//Some exit command here.....
WriteLn('OtherStuff End...');
end;
procedure Stuff;
begin
WriteLn('Stuff Start...');
OtherStuff;
WriteLn('Stuff End...');
end;
begin
WriteLn('Start...');
Stuff;
WriteLn('End...');
end.would output Start...
Stuff Start...
OtherStuff Start...
End...