//Accsee数据库创建及建表
Function Create_AC_Table(): Integer;
var
Cat: Olevariant;
Tadoq: TADOQuery;
begin
If Not FileExists(Fle) then
Begin
Cat := CreateOleobject('ADOX.Catalog');
Cat.Create('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' + Fle + ';');
Tadoq := TADOQuery.Create(nil);
Tadoq.connectionString := 'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=' +
Fle + ';';
Tadoq.SQL.Text :=
'Create Table Mp(Id Varchar(20),歌曲 Varchar(20),歌手 VarChar(20),网址 VarChar(100))';
Tadoq.ExecSQL;
end;
Tadoq.Free;
end;
// Accsee数据显示
Function TForm1.bShow(var AListView: TListView): Integer;
Var
i: Integer;
str: TLisTitem;
begin
with ADOQuery1 do
begin
SQL.Text := 'Select * From Mp';
Open;
First;
while not(Eof) do
Begin
str := AListView.I