E
eorchid
Unregistered / Unconfirmed
GUEST, unregistred user!
library moduleab;
uses
SysUtils,dialogs,adodb,
Classes;
procedure mainfunc(cnstring:string);stdcall;
var myado:tadoquery;
s:string;
i:integer;
begin
myado:=tadoquery.Create(nil);
myado.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:/myaccess/myaccess.mdb;Persist Security Info=False';
with myado do
begin
close;
sql.Clear;
sql.Add('select * from order_info');
open;
first;
while not eof do
begin
for i:=0 to fieldcount-1 do
s:=s+Fields.AsString;
next;
end;
end;
showmessage(s);
end;
exports
mainfunc;
{$R *.res}
begin
end.
uses
SysUtils,dialogs,adodb,
Classes;
procedure mainfunc(cnstring:string);stdcall;
var myado:tadoquery;
s:string;
i:integer;
begin
myado:=tadoquery.Create(nil);
myado.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:/myaccess/myaccess.mdb;Persist Security Info=False';
with myado do
begin
close;
sql.Clear;
sql.Add('select * from order_info');
open;
first;
while not eof do
begin
for i:=0 to fieldcount-1 do
s:=s+Fields.AsString;
next;
end;
end;
showmessage(s);
end;
exports
mainfunc;
{$R *.res}
begin
end.