Can't you accumulate the lines for the description into one variable
(instead of commiting to the virtual page each line) with CrLf at the end of
each line, then check the line count for the variable and if there are
insufficient lines remaining on that page, issue a newpage and print on the
next?
----- Original Message -----
From: "J.M. GRATIAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 30, 2002 4:40 AM
Subject: Re: A PAGEMODE question ...
>
> Jim Bentley :
>
> >>
> .....
> Under what circumstances are you building a page that later needs to be
> cleared ?
> <<
>
> Because I have a very unsual report to do ....
> I have to print on a preprinted form a 'boarding list' (similar to an
> invoice), and for each product I have :
> - 2 lines (fixed)
> - and some extra lines that are variables depending on each product. For
> that I use :
> SHOW VAR vproduct= 40 AT .vline, vcolumn
> SET VAR vlength = (ISTAT('PAGEROW'))
> to get cursor position.
> I want all lines related to the current product on the same page.
> If current product don't fit in the current page, I have to clear all
lines
> for the current product on the current page, print that page and open a
new
> page, print page header and reprint current product ....
>
> Not easy ....
>
> I hope this will help to understand my problem ....
>
> J.M. GRATIAS, Logimatique
> ================================================
> TO SEE MESSAGE POSTING GUIDELINES:
> Send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: INTRO rbase-l
> ================================================
> TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
> In the message body, put just two words: UNSUBSCRIBE rbase-l
> ================================================
> TO SEARCH ARCHIVES:
> http://www.mail-archive.com/rbase-l%40sonetmail.com/
>
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: INTRO rbase-l
================================================
TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED]
In the message body, put just two words: UNSUBSCRIBE rbase-l
================================================
TO SEARCH ARCHIVES:
http://www.mail-archive.com/rbase-l%40sonetmail.com/