[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: any way to jump BACK a page?
Rather than try to fool sqr, I think I would approach this using several
arrays to capture all the data until I knew the sub totals, then print the
arrays side by side. Using a flag for each array to know when the last
element of the array has been printed, and a sub-total for that column
(array) has been printed, then set the flag to stop processing that column
any further. This would allow you to print each page going forward without
re-positioning or worrying about what page you were on now.
I hope this helps.
-----Original Message-----
From: Andrew Lin [mailto:alin@TECHNEGLAS.COM]
Sent: Tuesday, July 09, 2002 3:28 PM
To: SQR-USERS@list.iex.net
Subject: any way to jump BACK a page?
Hi all,
Is there any command that allows you to jump back a page in SQR?
I'm printing a report that displays columns of data with subtotals at
the bottom of each column. ie
Group1:
Earnings Taxes
1 1
2 2
3 3
4 4
5 5
6 6
7
8
9
-- --
total A total B
Every time I start a new group, I simply note the #current-line and
then use the position command to jump back to the start of the column
before printing the next column. The only problem is if one of the
columns extends to the next page. Then my results end up looking like:
Group 1
Earnings
1
2
3
...
65
66
------------------page break-----------------
67
68
69
--
Total A
Taxes
1
2
3
4
5
--
Total B
I'd like the SQR to be able to jump back to the original start page.
Is this possible?
Thanks!
-Andrew