dbase record numbers in Quick Report

I have a database application written using Topaz for Delphi (database engine). On the preview of some reports i require the record number to be displayed for each record in the report.
I can not seem to find a way of achieving this. The QRSysData component does not show the actual record number but just numbers the records sequentially. I require the 'Table1.RecNo' value for each of the records in the report.

Thanks Paul.
LVL 1
pr_wainwrightAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ITugayConnect With a Mentor Commented:
IPCH ;(

What are you talking about?

------------ RecNo -----------
Indicates the current record in the dataset.

property RecNo: Longint;

Description

Examine RecNo to determine the record number of the current record in the dataset......
-------------
0
 
IPCHCommented:
Add calculated field.

procedure TForm1.Table1CalcFields(DataSet: TDataSet);
begin
  Table1RN.AsInteger:=Table1.RecNo;
end;
0
 
ITugayCommented:
Hi Paul,

you can drop TQRLabel onto your report and write QRLabel.OnPrint event:

....
begin
   Value:=IntToStr(Table1.RecNo);
end;

----
Igor.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
pr_wainwrightAuthor Commented:
ITugay's answer is exactly what i was looking for.

Thanks Paul.
0
 
pr_wainwrightAuthor Commented:
Right first time. Not bad considering i am terrible at explaining what i am trying to achieve in my questions !.

Thanks Paul.
0
 
IPCHCommented:
I am not Paul, I am Ivan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.