Article View: borland.public.cppbuilder.database.multi-tier
Article #9Re: TDBGrid : How to get the rowcount ?
From: Mark Cashman (TeamB BCB)
Date: Thu, 19 Aug 1999 00:00
Date: Thu, 19 Aug 1999 00:00
34 lines
1887 bytes
1887 bytes
Hi, Jeroen!
Please don't crosspost, since it makes it hard for people to followyup
on your question. I have set followup to database desktop, since this is
not a multi-tier issue. Multi-tier is specific to client-server and
beyond.
To iterate through the rows of a dataset, use
Table1->First();
while (!Table1->Eof)
{
// do something
Table1->Next();
};
If you know the name of a field, you can use
Table1->FieldByName("something")->AsString (for instance) to access it.
If you need to iterate through the fields by index, use the
Table1->Fields collection.
Hope this helps.
--
------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID:
<37BB8E38.79F6E450@ix.netcom.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37A584D9.C2A4BC9A@thepentagon.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,68cfe0eb0adaef4a X-Google-Attributes: gidfcd2b,public X-Google-Thread: 10bf25,68cfe0eb0adaef4a X-Google-Attributes: gid10bf25,public X-Google-Thread: fc5f9,68cfe0eb0adaef4a X-Google-Attributes: gidfc5f9,public From: "Mark Cashman (TeamB BCB)" <mcashman@ix.netcom.com> Subject: Re: TDBGrid : How to get the rowcount ? Date: 1999/08/19 Message-ID: <37BB8E38.79F6E450@ix.netcom.com> X-Deja-AN: 514560538 Content-Transfer-Encoding: 7bit References: <37A584D9.C2A4BC9A@thepentagon.com> X-Accept-Language: en Followup-To: borland.public.cppbuilder.database.desktop Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: mcashman@ix.netcom.com Newsgroups: borland.public.cppbuilder.database.multi-tier,borland.public.cppbuilder.database.sqlservers,borland.public.cppbuilder.database.desktop