H
hehuan
Unregistered / Unconfirmed
GUEST, unregistred user!
对于Procedure,如何执行到中途满足一定条件的话,后面就不执行?非常感谢!
报错如下:
[Error] Main.pas(754): Statement expected, but expression of type 'TAction' found
我的代码:
procedure TPosDuty.BtnCalculClick(Sender: TObject);
var
strAlert:String;
begin
strAlert:='Calculer the Table '''+gl_TableName+ ''' ? ';
if Application.Messagebox(PChar(strAlert),'Alert of the System',
mb_YesNo+MB_APPLMODAL+MB_ICONQUESTION+MB_DEFBUTTON2) = IDYES then
Begin
Exit;
end;
.......................
end;
Exit到底应该怎么用呢?即使这样也报相同的错:
procedure TPosDuty.Button13Click(Sender: TObject);
begin
Exit;
end;
非常感谢各位指教!
报错如下:
[Error] Main.pas(754): Statement expected, but expression of type 'TAction' found
我的代码:
procedure TPosDuty.BtnCalculClick(Sender: TObject);
var
strAlert:String;
begin
strAlert:='Calculer the Table '''+gl_TableName+ ''' ? ';
if Application.Messagebox(PChar(strAlert),'Alert of the System',
mb_YesNo+MB_APPLMODAL+MB_ICONQUESTION+MB_DEFBUTTON2) = IDYES then
Begin
Exit;
end;
.......................
end;
Exit到底应该怎么用呢?即使这样也报相同的错:
procedure TPosDuty.Button13Click(Sender: TObject);
begin
Exit;
end;
非常感谢各位指教!