A
aocandy
Unregistered / Unconfirmed
GUEST, unregistred user!
unit mst;
interface
uses
SysUtils, Classes,Dialogs,ADODB;
type
st = class(TThread)
ADOT:TADOTable;
private
{ Private declarations }
protected
procedure Execute;
override;
end;
implementation
uses m;
{ st }
procedure st.Execute;
var i:integer;
begin
ADOT.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:/netdb200210.mdb;';
ADOT.TableName:='peo';
try
ADOT.Close;
ADOT.Open;
ShowMessage('dd33');
except
ShowMessage('dd');
ADOT.Close;
ADOT.Free;
end;
i:=1;
While Truedo
begin
Form1.Label1.Caption:=IntToStr(i)+'4';//+Form1.ADOTable1.FieldByName('name').AsString;
inc(i);
end;
end;
end.
把ADOC的不分全部去掉,执行没问题~可加上没反应,在delphi中执行就提示错误~
interface
uses
SysUtils, Classes,Dialogs,ADODB;
type
st = class(TThread)
ADOT:TADOTable;
private
{ Private declarations }
protected
procedure Execute;
override;
end;
implementation
uses m;
{ st }
procedure st.Execute;
var i:integer;
begin
ADOT.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:/netdb200210.mdb;';
ADOT.TableName:='peo';
try
ADOT.Close;
ADOT.Open;
ShowMessage('dd33');
except
ShowMessage('dd');
ADOT.Close;
ADOT.Free;
end;
i:=1;
While Truedo
begin
Form1.Label1.Caption:=IntToStr(i)+'4';//+Form1.ADOTable1.FieldByName('name').AsString;
inc(i);
end;
end;
end.
把ADOC的不分全部去掉,执行没问题~可加上没反应,在delphi中执行就提示错误~