Problem with the ABORT procedure
Posted on 1998-12-09
I was developing apps in Delphi 1.0. I migrated the project
to Delphi 3.0. But I got the compiling error with the following code:
procedure TfCliente.TableBeforeCancel(DataSet: TDataset);
If MessageDlg('Cancel?', mtConfirmation,
[mbYes, mbNo], 0) = mrNo Then
Delphi says "Statement expected, but expression of type 'integer' found."
It's strange because I always used the ABORT procedure to cancel the TTable's Before procedures, but now in Delphi 3.0 it won't compile. I tried to put the ABORT procedure in other codes, it just shows the same error.
In this case will this be Delphi 3.0's bug?