🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ado recordset

#5321
From: Neo
Date: Thu, 21 Jun 2001 14:22
19 lines
1365 bytes
try this

String sTemp = Query1->FieldByName("MyField")->AsString;

AsString is the type you are extracting. It could also be AsInteger,
AsFloat, AsDateTime or whatever your field definition is.

Neo


andy <Mihalik@novycas.sk> wrote in message news:3b319ec4_1@dnews...
> Hi,i use   _di__Recordset interface to access database.
> I know to open recordset with ("select ...from ......)
> My question is : How can i get value from some field in recordset ??
> In VB is it   :  rs.fields(1).value
>
> Thanks.
>
>
Technical Details
Message-ID: <3b32034f_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b319ec4_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,94706d54dfb64623
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-06-21 07:42:58 PST
From: "Neo" <klink_stalag13@nospam_yahoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3b319ec4_1@dnews>
Subject: Re: ado recordset
Date: Thu, 21 Jun 2001 10:22:35 -0400
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 38.166.43.102
Message-ID: <3b32034f_2@dnews>
X-Trace: dnews 993133391 38.166.43.102 (21 Jun 2001 07:23:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews