<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties > RecNo |
Declaration
property RecNo: LongInt;
Description
Gets or sets the current physical record number. The physical record number is always used as an input parameter to the Go method.
Setting a value to RecNo is the same as passing a numeric value to the Go method.
When a new record is being added (via Append, AppendBlank, or Insert), the record number reported by RecNo will be –1 until the new record is posted.
Delphi Example
// Display record position / count info
Label1.Caption := IntToStr( ApTbl.RecNo ) + '/' + IntToStr( ApTbl.RecCount );
C+Builder Example
// Display record position / count info
Label1->Caption = IntToStr( ApTbl->RecNo ) + "/" + IntToStr( ApTbl->RecCount );
See Also