🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #803

Use of ADO Recordset

#803
From: Bas Groeneveld
Date: Wed, 04 May 2005 07:34
27 lines
1710 bytes
Hi

I am having trouble using a pointer to an ADO Recordset15 object returned
from a COM control.

I can access the RecordCount variable with no problems, however I cannot
work out how to get to the actual field values.

Ideally I would like to assign the Recordset to a standard ADODataSet object
and take it from there. Is there a way to do this?

Otherwise what is the syntax to access the Recordset's field collection and
get to the field values. I was able to do this in C#.NET using:
    rs.Fields["FieldName"].Value.ToString();

I suspect that it is pretty straight forward. Is there a good reference to
this somewhere - the MSDN CD doesn't seem to help much.

Thanks
Bas
-- 

==========================================
Bas Groeneveld
Benchmark Design System and Software Engineering
PO Box 165N, Ballarat North, VIC 3350
Phone: +61 3 5333 5441  Mob: 0409 954 501
Technical Details
Message-ID: <42787b1f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,6b79b4524634c0b2,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bas Groeneveld" <nospam@nospam.com.au>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Use of ADO Recordset
Date: Wed, 4 May 2005 17:34:48 +1000
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 60.230.81.175
Message-ID: <42787b1f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115192095 60.230.81.175 (4 May 2005 00:34:55 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail