代码拉取完成,页面将自动刷新
同步操作将从 mellen/dbooks 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
unit UnitETL;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, OleCtrls, SHDocVw, StdCtrls, Buttons, jpeg, ExtCtrls,inifiles;
type
Tfrmnianfo = class(TForm)
btnnf: TSpeedButton;
grp1: TGroupBox;
Label2: TLabel;
Label1: TLabel;
labtoday: TLabel;
labtotal: TLabel;
Label3: TLabel;
labh: TLabel;
img2: TImage;
lab5: TLabel;
labdate: TLabel;
procedure btnnfClick(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure load();
procedure save();
end;
var
frmnianfo: Tfrmnianfo;
implementation
uses UnitData;
{$R *.dfm}
procedure Tfrmnianfo.btnnfClick(Sender: TObject);
var
i,t,h,a:integer;
num:integer;
myinifile: TInifile;
begin
img2.Height:=220;
for I := 0 to 100 do begin
img2.Height:= 220+i;
end;
num:= StrToInt(lab5.Caption);
h:= StrToInt(labh.Caption);
t:=StrToInt(labtoday.Caption);
a:=StrToInt(labtotal.Caption);
num:=num+1;
t:=t+1;
a:=a+1;
lab5.Caption:=IntToStr(num);
if num=10 then begin
lab5.Caption:='0';
h:=h+1;
labh.Caption:= IntToStr(h);
//num:=0;
end;
//a:=a+t;
labtotal.Caption:=IntToStr(a);
labtoday.Caption:=IntToStr(t);
save();
end;
procedure Tfrmnianfo.FormShow(Sender: TObject);
var
i:integer;
num:integer;
myinifile: TInifile;
g_path,h,today,total:string;
begin
load();
end;
procedure Tfrmnianfo.load();
var
i:integer;
num:integer;
myinifile: TInifile;
g_path,h,today,total,d:string;
begin
g_path := ExtractFileDir(ParamStr(0));
myinifile := TInifile.Create(g_path + '\address.ini');
labtoday.Caption := myinifile.ReadString('zl', 'today', '');
labtotal.Caption := myinifile.ReadString('zl', 'total', '');
labh.Caption:= myinifile.ReadString('zl', 'h', '');
labdate.Caption := myinifile.ReadString('zl', 'day', '');
d:=FormatDateTime('yyyymmdd', Now());
if (d <> labdate.Caption) then begin
labdate.Caption:=d;
labtoday.Caption:='0';
end;
end;
procedure Tfrmnianfo.save();
var
i:integer;
num:integer;
myinifile: TInifile;
g_path,h,today,total:string;
begin
g_path := ExtractFileDir(ParamStr(0));
today:=labtoday.Caption;
total:=labtotal.Caption;
myinifile := TInifile.Create(g_path + '\address.ini');
myinifile.WriteString('zl','today',today);
myinifile.WriteString('zl','total', total);
myinifile.WriteString('zl','h',labh.Caption);
myinifile.WriteString('zl','day',FormatDateTime('yyyymmdd', Now()));
end;
end.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。