unit1.pas

来自「三层数据库应用程序的例子,包括应用服务器和前台程序.」· PAS 代码 · 共 52 行

PAS
52
字号
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,ExtCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    GroupBox1: TGroupBox;
    Label6: TLabel;
    lbClientCount: TLabel;
    Label8: TLabel;
    lbQueryCount: TLabel;
  private
    { Private declarations }
    FQueryCount:Integer;
    FClientCount:Integer;
  public
    { Public declarations }
    procedure UpdateClientCount(Incr:Integer);
    procedure incQueryCount;
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.UpdateClientCount(Incr:Integer);
begin
  FClientCount:=FClientCount+incr;
  lbClientCount.Caption:=IntToStr(FClientCount);
end;

procedure TForm1.incQueryCount;
begin
  Inc(FQueryCount);
  lbQueryCount.Caption:=IntToStr(FQueryCount);
end;


end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?