📄 showcount.pas
字号:
unit ShowCount;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
GroupBox1: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
private
QueryCount:Integer;
ClientCount:Integer;
{ Private declarations }
public
Procedure UpdateClientCount(Incr:Integer);
Procedure IncQueryCount;
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
Procedure TForm1.UpdateClientCount(Incr:Integer);
begin
ClientCount:=ClientCount+Incr;
Label4.Caption:=IntToStr(ClientCount);
end;
Procedure TForm1.IncQueryCount;
begin
Inc(QueryCount);
Label5.Caption:=IntToStr(QueryCount);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -