Ado table and fields

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
azrael11
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 22.11.2010, 09:17

Ado table and fields

Post by azrael11 »

Delphi 7 Zeos7
I create a ado database with this code
Function Tdata.createadodatabase(filename: string):string;
Var
Cat:olevariant;
Begin
Result := '';
Try
Cat := createoleobject('adox.catalog');
Cat.create ('provider=Microsoft.jet.oledb.4.0;datasource='+filename+'jet oledb:engine type=4');
Cat := null;
Except
On e : exception do result := e.message;
End;
End;


Now how can I create a table named table1 with two fields field1 and field2 in this table1 using zeos lib 7
Thank you...
Locked