home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 September
/
Chip_2002-09_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d45
/
OPTIONS.ZIP
/
Units
/
ArrayEditor.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2002-06-06
|
711b
|
43 lines
unit ArrayEditor;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TfrmArrayEditor = class(TForm)
memArray: TMemo;
lblCount: TLabel;
Button1: TButton;
Button2: TButton;
procedure memArrayChange(Sender: TObject);
private
procedure DispCount;
public
{ Public declarations }
end;
var
frmArrayEditor: TfrmArrayEditor;
implementation
{$R *.DFM}
{ TfrmArrayEditor }
procedure TfrmArrayEditor.DispCount;
begin
lblCount.Caption := IntToStr(MemArray.Lines.Count) + ' items';
end;
procedure TfrmArrayEditor.memArrayChange(Sender: TObject);
begin
DispCount;
end;
end.