[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: page-counts



To print things on a previous page in version 6.0 + you can use the
"delay" option of the print command.  Print the items while you are still
on the page (with delay) and once you are done with whatever processing
that would give you the amount, use a "set-delay-print" to assign it.
The commands look something like...

   print #total_delayed (,#tot_position) delay edit '9,999,999.99'
   ...
   ...
   set-delay-print #total_delayed with #total_amt


If you are pre-6.0, then the most popular option would probably be to
store the the values you are going to print in an array, figuring up the
values for totals/counts/averages/etc as you go.  Print the calculated
values and then process through the array printing from it.


On Thu, 19 Sep 2002, Poonam Auluck wrote:

> Hi All -
>
> Just had a quick question which hopefully someone can answer for me!
> Is it possible for me to go between pages in the a report?
>
> I have some fields that continue on to another page.  But after printing
> the rows on the new-page, I would like to print fields on the first page of
> my form.  I thought about using the page-count function.  Once I created
> the new-page, my #page-count displays 2.  I would like to reset this
> #page-count to 1 if I can.  Do you think that's possible?
>
> In terms of SQR, I was able to get this:
>
> show #page-count              !this displays 2
> let #page-count = 1
> show #page-count              !now, this reads 1
>
> Since I'm on the first page, I would like to have some print statements
> print on the first page, but SQR still thinks it's on page 2, rather than
> 1.
>
> Any ideas??
>
> Thanks for all the help!
> Poonam
>

-----------------------------------------------------------------------
Donald Mellen  | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com |  "In the beginning, there was nothing, which exploded"