home *** CD-ROM | disk | FTP | other *** search
- 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.
-
-