[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: why does SQR skip a line on new page?
Hmmm... Thanks Dave! that gets the result I was expecting from the
other code...
so it must be that SQR sees the line advance (position (+1)),
"does the math" and knows it has to go to a new page,
goes to a new page (now we are at (1,1))
and then executes the line advance (position (+1)) just the same
--wb
"Benzenhafer, Dave" wrote:
>
> Try this
>
> Let #bottom_line = 55 !or whatever the length of your page is
> begin-program
> while #count < 100
> print #current-line ( ,5) edit 999
>
> If #current-line >= #bottom_line
> newpage
>
> !you can use this line if you need to use more than one column
> !on a page and set up the column command
>
> !next-column goto-top=1 at-end=newpage
>
> else
> position (+1,1)
> end-if
>
> add 1 to #count
> end-while
> end-program
>
> Dave Benzenhafer
> dbenzenhafer@houston.deepwater.com
>
> -----Original Message-----
> From: Wendy Biggs [mailto:biggswl@VT.EDU]
> Sent: Friday, May 31, 2002 3:31 PM
> To: SQR-USERS@list.iex.net
> Subject: why does SQR skip a line on new page?
>
> can someone explain to me why the following code will only print on line
> 1 of the first page of output? [all subsequent pages start on line 2]
>
> begin-program
> while #count < 100
> print #current-line ( ,5) edit 999
> position (+1)
> add 1 to #count
> end-while
> end-program
>
> --wb
> --
> "It should be challenging, but not impossible, to come up with an
> acceptable password."
> Karen Herrington - New criteria for Oracle passwords
--
"It should be challenging, but not impossible, to come up with an
acceptable password."
Karen Herrington - New criteria for Oracle passwords