Article View: borland.public.delphi.database
Article #91connecting to a database without ODBC
From: Magnus Nordin
Date: Mon, 23 Jun 2003 19:31
Date: Mon, 23 Jun 2003 19:31
22 lines
1905 bytes
1905 bytes
Hi, I'm new at Delphi and databases but want to use a DataBase-component and connect it to a database without using the ODBC. I have put the component on a datamodule an wrote the following code: ****************************************************** procedure TDMSystem.DataModuleCreate(Sender: TObject); var path, currDir : string; begin currDir := sysutils.GetCurrentDir; path := currDir+'\Data\Data.mdb'; DataBase.DatabaseName := path; DataBase.Connected := true; end; ***************************************************** When I try to run the application I get an error with the this message: "Invalid parameter" If there is someone who can help me with this problem I would be very thankful. //Magnus
Technical Details
Message-ID:
<4AIJa.13099$mU6.14980@newsb.telia.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.indigo.ie!feeder.news.heanet.ie!surfnet.nl!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,dfdef7e99a11fba0,start X-Google-Attributes: gid115d96,public X-Google-ArrivalTime: 2003-06-23 12:32:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!pln-w!extra.newsguy.com!lotsanews.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.indigo.ie!feeder.news.heanet.ie!surfnet.nl!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: "Magnus Nordin" <magnusnordin@telia.com> Newsgroups: borland.public.delphi.database Subject: connecting to a database without ODBC Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Message-ID: <4AIJa.13099$mU6.14980@newsb.telia.net> Date: Mon, 23 Jun 2003 19:31:12 GMT NNTP-Posting-Host: 217.208.104.51 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1056396672 217.208.104.51 (Mon, 23 Jun 2003 21:31:12 CEST) NNTP-Posting-Date: Mon, 23 Jun 2003 21:31:12 CEST Organization: Telia Internet