I had a great idea for Paradox/DOS reports, maybe someone here can
tell me why it WON'T work....or what alternative there is:
Don't you want to print PAGE X of Y as a header on each report page?
Convenient PAL features NPAGES() AND PAGENO() sounded like a
good place to start. (They usually report only page WIDTHS).
I assigned whatpage=pageno() and used this in calculated field.
But I have to GET to the last page to do this. Tell me I'm
reinventing the wheel and this old problem is solved in the
documention somewhere!
This seems awful round-about to me, eh what?
I discover that I can't issue PAL commands inside Report View on
screen (Report Output Screen). Not even {Menu} commands, so that
I could {Menu} {Goto} {Endofreport} and assign PAGENO() to
a variable. (Idea works with page widths, and with page
showing in Report Designer)
;pagetest script
{Report} {Change} {pagetest}
{R} {Work Hours Report by Job / Craft}
Menu {Output} {Screen} ;these never operate {Menu} {Goto} {Endofreport}
;first assign variable, second re-view to see results - blechh!
SLEEP 3000
WHATPAGE=PAGENO() ;in calculated field in report
Do_It! {Report} {Change} {pagetest} {R}
{Work Hours Report by Job / Craft} Menu {Output} {Screen}
puts a nice header on page from Report Designer, not the report.
There's also NROWS() but I hesitate to put much more faith there.
Ideas?
---
* SLMR 2.1 * Surveys show 47% of all statistics are worthless.
--- QScan/PCB v1.16b / 01-0024
---------------
* Origin: (1:3407/14)
|