home *** CD-ROM | disk | FTP | other *** search
- unit serv1;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls;
-
- type
- TMiServidor = class(TForm)
- Label1: TLabel;
- Label2: TLabel;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- FClientCount: Integer;
- public
- { Public declarations }
- procedure UpdateClientCount(Incr: Integer);
- end;
-
- var
- MiServidor: TMiServidor;
-
- implementation
-
- {$R *.DFM}
-
- procedure TMiServidor.UpdateClientCount(Incr: Integer);
- begin
- FClientCount := FClientCount+Incr;
- label2.Caption := IntToStr(FClientCount);
- end;
-
-
- procedure TMiServidor.FormCreate(Sender: TObject);
- begin
- FClientCount:=0;
- label2.caption:=inttostr(0);
- end;
-
- end.
-
-
-
-