skwattrinated
Technical User
Hi!
Please don't blame me for my, I know, stupid question. I searched on the on-line help, the net and the forum, but I was not able to solve.
I have a procedure that just write something in a Memo when I press a Button, and it is called from inside the OnClick event procedure. I paste my code hereafter:
The problem is that when I compile this code, MemoOut object is not recognized inside LeggiElenco procedure [error: Undeclared identifier: MemoOut], and I can't understand why...
Could you help me, please?
Thanks
Please don't blame me for my, I know, stupid question. I searched on the on-line help, the net and the forum, but I was not able to solve.
I have a procedure that just write something in a Memo when I press a Button, and it is called from inside the OnClick event procedure. I paste my code hereafter:
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
EditElenco: TEdit;
MemoOut: TMemo;
Label2: TLabel;
EditFasce: TEdit;
Label3: TLabel;
EditOut: TEdit;
ButtonCalcola: TButton;
procedure ButtonCalcolaClick(Sender: TObject);
procedure LeggiElenco(FileElenco: AnsiString);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure LeggiElenco(FileElenco: AnsiString);
begin
MemoOut.Lines.Add('Leggo elenco dei file da analizzare');
end;
procedure TForm1.ButtonCalcolaClick(Sender: TObject);
begin
LeggiElenco(EditElenco.Text);
end;
end.
The problem is that when I compile this code, MemoOut object is not recognized inside LeggiElenco procedure [error: Undeclared identifier: MemoOut], and I can't understand why...
Could you help me, please?
Thanks