Article View: borland.public.cppbuilder.database.ado
Article #5924Re: Move between records.
From: Alexei Karas
Date: Mon, 15 Jan 2001 10:56
Date: Mon, 15 Jan 2001 10:56
57 lines
2280 bytes
2280 bytes
I spoke about pure ADO, as the question was asked in this NG. In ADO there
is no MoveBy method. Although you may use something like
ADODataSet->MoveFirst();
for (int i=0; i<3; i++)
ADODataSet->MoveNext();
But the record you'll appear will have no attitude to the digit 3 in no way.
Sincerely,
Alexei
"Jirzi" <jirzi@hotmail.com> wrote in message news:3a5eadac_1@dnews...
> What about MoveBy method?
> Maybe you can do this:
>
> DataSet1->First();
> DataSet1->MoveBy(3);
>
> and you are on the third record.
>
> Jirzi
>
> "Alexei Karas" <nospam_AlexKaras_thatsextraaswell@hotmail.com> wrote in
> message news:3a5dda31_1@dnews...
> > Conserning ADO - NO. You may only use bookmarks or
> > MoveFirst/Last/Next/Previous since SQL-oriented databases (and
providers)
> > have no idea about record number. Such thing is meaningless in SQL
> > databases.
> >
> > HTH,
> > Alexei
> >
> > "Jorge Leibowich" <jorge@lid.com.ar> wrote in message
> > news:3a5db631_2@dnews...
> > > Hello, I got a table ordered by numbers, and I need to print in the
> > printer
> > > like this
> > >
> > > 1 6 11
> > > 2 7 12
> > > 3 8 13
> > > 4 9 14
> > > 5 10 15
> > >
> > >
> > > Using for's is very complex!!! Are there any function to go DIRECTLY
to
> a
> > > record (for example Query1->GORECORD(3) )
> > >
> > > Thanks you!
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID:
<3a62d731_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!194.93.181.26References:
<3a5db631_2@dnews> <3a5dda31_1@dnews> <3a5eadac_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,13df0096ab2e94b6 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-01-15 03:00:05 PST From: "Alexei Karas" <nospam_AlexKaras_thatsextraaswell@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3a5db631_2@dnews> <3a5dda31_1@dnews> <3a5eadac_1@dnews> Subject: Re: Move between records. Date: Mon, 15 Jan 2001 12:56:52 +0200 Lines: 60 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: 194.93.181.26 Message-ID: <3a62d731_2@dnews> X-Trace: 15 Jan 2001 02:55:45 -0800, 194.93.181.26 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!194.93.181.26