有这个必要吗可以是 if not s then begin ... end;真要跳?那就GoTo语句了其实 if s then else ...也一样的http://lysoft.7u7.net
如果用break来跳出程序提示在else那儿有问题!
不写任何代码就ok 啦。你是不是else 后面没有用begin end 引起来哦?!
if = then begin ... Break; ... end else begin end;
if 语句用的着break吗The Break procedure causes the flow of control in Delphi code to exit a for, while, or repeat statement and continue at the next statement following the loop statement. A call to Break must be contained in a for, while, or repeat statement, or the compiler reports an error.
if not s then
begin
...
end;真要跳?那就GoTo语句了其实
if s then else ...也一样的http://lysoft.7u7.net
begin
...
Break;
...
end
else
begin
end;
A call to Break must be contained in a for, while, or repeat statement, or the compiler reports an error.
else
你的代码