Recent

Author Topic: Problem creating variable to display page count  (Read 145 times)

joceravolo

  • Newbie
  • Posts: 1
Problem creating variable to display page count
« on: September 13, 2019, 11:17:48 pm »
Hi Guys,

I am new to this and I am using Codetyphon 6.8.
I want to create a variable to display the page count in this format:
Page X
I created a variable with this expression 'Page ' + inttostr(PageNo)
That gives me an error that it expects string but is getting boolean.
I can't find samples for the reports. That would help.

Thanks in advance,

Joe.

Handoko

  • Hero Member
  • *****
  • Posts: 3163
  • My goal: build my own game engine using Lazarus
Re: Problem creating variable to display page count
« Reply #1 on: September 14, 2019, 06:44:15 am »
Hello joceravolo,
Welcome to the forum.

You don't need to create a variable for it. Double click on the frReport component and do these:

1. Click the insert rectangle object (on the left toolbar) and click on the location you want to put it
2. Put this:
Page [PAGE#] in the text editor
3. Click the OK button to close the editor


Note:
This Lazarus/FPC forum, not CodeTyphon.
« Last Edit: September 14, 2019, 06:47:21 am by Handoko »