V
V
Vladislav2013-11-28 19:55:10
Delphi
Vladislav, 2013-11-28 19:55:10

Error : Prescribing a function without a description

Hello!
My situation is this:
I'm doing a lab. Task: translator of code from one language to another (for example, Pascal -> C++ ).
I write in PascalABC.Net.
In the built-in form designer, I created an interface. I decided to check the buttons (nothing inside the procedure code).
I tried to compile, I get the error "Function specification without description"

{Project2.pas - сам файл приложения}
uses Unit1;

begin
  System.Windows.Forms.Application.EnableVisualStyles();
  System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false);
  System.Windows.Forms.Application.Run(new Form1)
end.

{Unit1.pas - модуль из него(пишу здесь вместе - на всякий пожарный)}
unit Unit1;

interface

uses
  System, System.Drawing, System.Windows.Forms;

type
  Form1 = class(Form)
    procedure button1_Click(sender: Object; e: EventArgs) ; 
    procedure button2_Click(sender: Object; e: EventArgs) ; 
    procedure button3_Click(sender: Object; e: EventArgs) ; 
    procedure bindingSource1_CurrentChanged(sender: Object; e: EventArgs);
  {$region FormDesigner}
  private
    {$resource Unit1.Form1.resources}
    textBox1: TextBox;
    textBox2: TextBox;
    button1: Button;
    button3: Button;
    components: System.ComponentModel.IContainer;
    button2: Button;
    {$include Unit1.Form1.inc}
  {$endregion FormDesigner}
  public 
    constructor;
    begin
      InitializeComponent;
    end;
  end;

implementation

procedure button1_Click(sender: Object; e: EventArgs);
begin

end;

procedure button2_Click(sender: Object; e: EventArgs);
begin
  
end;

procedure button3_Click(sender: Object; e: EventArgs);
begin
  
end;

procedure Form1.bindingSource1_CurrentChanged(sender: Object; e: EventArgs);
begin
  
end;

end.

What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hint, 2013-11-28
@Hateman31

Add the class name before the function names. Should be:
etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question