selena1
Programmer
- Apr 7, 2003
- 69
I use a Paradox database. I want to specify what is record number in some dataset. I use properties RecordNo and RecordCount, and component Label:
Label1.Caption := 'Record ' + IntToStr(Table1.RecNo) + ' of ' + IntToStr(Table1.RecordCount);
Trouble is when I retrieve some recordst from the table, using Filter property, and scroll between records. In that case, property RecordNo has value of physical position record in the complete table. So, I can't get correct result.
For example: if set Filter property on some value and as a result get 5 records (records: 2,3,4,8,10) from the table that have 10 records as a result I can get:
Record 8 of 5.
Correct is:
Record 4 of 5.
How can I solve this trouble?
THANKS!
Label1.Caption := 'Record ' + IntToStr(Table1.RecNo) + ' of ' + IntToStr(Table1.RecordCount);
Trouble is when I retrieve some recordst from the table, using Filter property, and scroll between records. In that case, property RecordNo has value of physical position record in the complete table. So, I can't get correct result.
For example: if set Filter property on some value and as a result get 5 records (records: 2,3,4,8,10) from the table that have 10 records as a result I can get:
Record 8 of 5.
Correct is:
Record 4 of 5.
How can I solve this trouble?
THANKS!