Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 9 of 9 total
Thread Recno returns 0
Thu, Jul 12 2007 2:12 AMPermanent Link

"Royke"
I have a tEDBTable that is active, and contains one record. After
Table.First, I get Table.Recno = 0. In my old, preEDB days, that used to be
1. Is this a bug, or does Recno use 0-based counting?

When using Paradox tables, you can position a table on the nth record using
'Table.RecNo := n;'. Is this also possible with tEDBTables?

RJ


Thu, Jul 12 2007 12:18 PMPermanent Link

"Royke"
"Royke" <royke@canada.com> wrote in message
news:37434CB8-6692-4008-B477-DD95215D6346@news.elevatesoft.com...
>I have a tEDBTable that is active, and contains one record. After
>Table.First, I get Table.Recno = 0. In my old, preEDB days, that used to be
>1. Is this a bug, or does Recno use 0-based counting?
>
> When using Paradox tables, you can position a table on the nth record
> using 'Table.RecNo := n;'. Is this also possible with tEDBTables?
>
> RJ

I did some more checking: RecNo is always zero (if there are 1 or more
records).


Thu, Jul 12 2007 4:41 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

RJ,

<< I have a tEDBTable that is active, and contains one record. After
Table.First, I get Table.Recno = 0. In my old, preEDB days, that used to be
1. Is this a bug, or does Recno use 0-based counting? >>

RecNo always returns 0 because EDB does not support logical or physical row
numbering.

<< When using Paradox tables, you can position a table on the nth record
using 'Table.RecNo := n;'. Is this also possible with tEDBTables? >>

Yes, but it uses brute-force navigation so don't count on it being
super-fast on extremely large tables.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jul 13 2007 2:55 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


What about the internal record number - is that accessible / usable?

Roy Lambert
Fri, Jul 13 2007 12:43 PMPermanent Link

"Royke"
"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message
news:19973AC6-1C2F-4694-9ED3-810EFABFD8FE@news.elevatesoft.com...
> RJ,
>
> << I have a tEDBTable that is active, and contains one record. After
> Table.First, I get Table.Recno = 0. In my old, preEDB days, that used to
> be 1. Is this a bug, or does Recno use 0-based counting? >>
>
> RecNo always returns 0 because EDB does not support logical or physical
> row numbering.

Does this means that I can write off our nice status bar that says 'Record x
of xx' ? Or is there some other way to do this?

RJ

> << When using Paradox tables, you can position a table on the nth record
> using 'Table.RecNo := n;'. Is this also possible with tEDBTables? >>
>
> Yes, but it uses brute-force navigation so don't count on it being
> super-fast on extremely large tables.
>
> --
> Tim Young
> Elevate Software
> www.elevatesoft.com
>

Fri, Jul 13 2007 4:43 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< What about the internal record number - is that accessible / usable? >>

There aren't any internal row numbers in EDB.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Jul 13 2007 4:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

RJ,

<< Does this means that I can write off our nice status bar that says
'Record x of xx' ? >>

Yes:

http://www.elevatesoft.com/scripts/newsgrp.dll?action=openmsg&group=16&msg=66&page=1#msg66

And the same holds for an accurate scrollbar in grids.

--
Tim Young
Elevate Software
www.elevatesoft.com

Sat, Jul 14 2007 8:36 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


><< What about the internal record number - is that accessible / usable? >>
>
>There aren't any internal row numbers in EDB.

Interesting. Was there at one time or is my memory failing totally?

Roy Lambert
Mon, Jul 16 2007 4:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Interesting. Was there at one time or is my memory failing totally? >>

There was a row ID column, but that's a different thing altogether.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image