🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADODataSet problem

#4479
From: AdoAnywhere Team
Date: Tue, 08 Jan 2002 14:04
38 lines
2088 bytes
To read a field from the current row, just use
AdoDataset1.fieldbyname('Surname').AsString

To read from an arbitrary row you can use the
AdoDataset.First
AdoDataset.MoveBy(x)
to position the cursor on the x record.



--
Michael Collier Bsc (Hons) Comp Sci
ADO Support Tools.
Download Free Fully Working 30-Day Trial in 7 Minutes From...
http://www.adoanywhere.com/download/aaBrowse2_6.zip

All information in this message is provided 'As is' and without warranty of
any kind. http://www.adoanywhere.com

"Mehdin Hodzic" <mehdinh@inet.ba> wrote in message news:3c3af7df_1@dnews...
> Hi people,  I have a problem with DataSet (let's say TADODatSet *adods)
> I'm trying to have something like:
>
>     Edit1->Text=adods->Records[i]->FieldByName("SomeField")->AsString;
>
> Ofcource this code is not working, but is there posibility to heve
something
> like this, I mean
> is it posibile to read data from DataSet form any Record, no matter what
is
> selected row
> and where cursor is positioned and without moving to another record?
>
> Thanks in advance
>
> Mehdin
>
>
Technical Details
Message-ID: <3c3afc27_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c3af7df_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,16bd8bdaac080745
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-01-08 06:08:53 PST
Reply-To: "AdoAnywhere Team" <mike@adoanywhere.com>
From: "AdoAnywhere Team" <mike@adoanywhere.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3c3af7df_1@dnews>
Subject: Re: TADODataSet problem
Date: Tue, 8 Jan 2002 14:04:55 -0000
Lines: 40
Organization: www.adoAnywhere.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 217.72.165.126
Message-ID: <3c3afc27_1@dnews>
X-Trace: dnews 1010498599 217.72.165.126 (8 Jan 2002 06:03:19 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!newsfeed.mesh.ad.jp!uunet!osa.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews