TUniTable recno starts at 0 or 1 ?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
testpresta
Posts: 32
Joined: Sat 07 Jun 2014 19:41

TUniTable recno starts at 0 or 1 ?

Post by testpresta » Sun 06 Jul 2014 12:31

Hello

There is a recno property on TUniTable component.
I an wondering something: If i have 10 records in the table:
- Does recno range is 0 to 9 ?
- Or range is 1 to 10 ?

Thanks

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TUniTable recno starts at 0 or 1 ?

Post by AlexP » Mon 07 Jul 2014 08:16

Hello,

In all the components (including TUniTable), RecNo (number of the current record) starts from 1. In your case, the 10th record will have RecNo equal to 10.

Post Reply