Article View: borland.public.cppbuilder.database.ado
Article #437Re: Reading data from Access DB
From: Viatcheslav V. Vassiliev
Date: Mon, 06 Mar 2006 07:50
Date: Mon, 06 Mar 2006 07:50
36 lines
2275 bytes
2275 bytes
Use TDataSet (TADODataSet) without TDBGrid:
while (!DataSet1->Eof)
{
for (int i = 0; i < DataSet1->Fields->Count; i++)
{
... DataSet1->Fields->Fields[i]->AsString ...
}
DataSet1->Next();
}
//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)
"Mario" <junk@L4software.com> ???????/???????? ? ???????? ?????????:
news:440adda9$1@newsgroups.borland.com...
> I'm working on an app that needs to read data from an Access database,
> apply some conversions to all the data and write it out to a comma
> delimited file. My plan was to open the Access database and put it into a
> TDBGrid object so I could walk through each cell with the Col and Row
> properties. Unfortunately, these properties are protected so they are not
> available to the main form where the conversion method is located.
>
> So, before I get hoplessly lost with this, is there a better way to do
> what I'm trying to do? Any help would be appreciated.
>
> I'm a bit rusty with C++, but it's coming back, and I'm new to C++ Builder
> 2006 so please go easy on me...
>
> Mario
Technical Details
Message-ID:
<440be9b6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440adda9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2a49ac4368d2b935 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <440adda9$1@newsgroups.borland.com> Subject: Re: Reading data from Access DB Date: Mon, 6 Mar 2006 10:50:11 +0300 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 85.93.138.132 Message-ID: <440be9b6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141631414 85.93.138.132 (5 Mar 2006 23:50:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail