Delphi Error or Bug in Procedure Creation

7

In the creation of the Automatic Procedure, double click on the component, Delphi XE8 and delphi-10 is having a strange reaction it mixes the new Procedure with one of the existing Procedure, causing their names to be wrong and I have to correct all . The new procedure starts with two "P" ex:

pprocedure and the existing procedure adds a "P" ex: rocedure

According to the code example below:

pprocedure TfrmCliente.cdsMasterBeforeCancel(DataSet: TDataSet);
begin
  inherited;

end;

rocedure TfrmCliente.cdsMasterBeforePost(DataSet: TDataSet);
begin
  inherited;
  if (cdsMaster.State = dsInsert)  then
     cdsMaster.FieldByName('CODIGO').AsString := '000000';

end;
    
asked by anonymous 14.11.2015 / 01:00

1 answer

2

Good morning Ailton, this problem usually occurs when we ask the IDE to create the procedure automatically and there is some code error, for example a missing semicolon.

I hope I have helped.

    
05.10.2017 / 13:38