Dennis McGrath :

>>
Why not do two-pass process for each product?  You can calculate how much
room you need for the product first.  If it will fit, do the output,
otherwise start new page and do the output.
<<

I discarded this solutions for 2 reasons :

1) My solution is must more rapid because the current product is writen at
the rigth place and I have to undo it in a few cases (10 % if one page
contains about 10 products),

2) To calculate how much room I need for the product, I must write it
somewhere (SHOW VAR Variablename=40 AT .vline, .vcolumn + SET var vcursor =
(ISTAT('PAGEROW'))) and I don't think PAGEMODE will allow to change output
without clearing the current page.


MikeB :

>>
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,
<<

I could probably do that, but it would be longer, take more code and be
more difficult to test and to maintain.
As I am in PAGEMODE, I use a DECLARE cursor WHILE LOOP...

Thanks for your help ....

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/

Reply via email to