N
nhwc
Unregistered / Unconfirmed
GUEST, unregistred user!
源程序:
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
j:boolean;
h:widestring;
k:smallint;
begin
table1.open;
i:=1;
while not table1.eof do
begin
inc(i);
f1book1.textrc[i,1]:=table1.fieldbyname('reno').asstring;
f1book1.row:=i;
f1book1.col:=2;
f1book1.FormatMdyy;
f1book1.TextRC[i,2]:=table1.fieldbyname('teldate').value;
table1.next;
end;
f1book1.maxrow:=i;
f1book1.maxcol:=2;
f1book1.SaveFileDlg('',h,k);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
i:integer;
j:boolean;
h:widestring;
k:smallint;
begin
table1.open;
i:=1;
while not table1.eof do
begin
inc(i);
f1book1.textrc[i,1]:=table1.fieldbyname('reno').asstring;
f1book1.row:=i;
f1book1.col:=2;
f1book1.FormatMdyy;
f1book1.TextRC[i,2]:=table1.fieldbyname('teldate').value;
table1.next;
end;
f1book1.maxrow:=i;
f1book1.maxcol:=2;
f1book1.SaveFileDlg('',h,k);
end;