[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: on-break causes blank lines to be inserted
- Subject: Re: on-break causes blank lines to be inserted
- From: Raymond Ruppert <ray@MAIL.CORTLAND.EDU>
- Date: Wed, 1 Sep 1999 15:16:33 -0400
Joe,
I've found that SQR still does the position-movement aspect of a print
statement, even if you have it marked as an on-break print=never deal. So
it's getting to the (+1,1) on-break=... and incrementing the line regardless
of whether or not it prints the value. I'm pretty sure the only reason the
"skiplines" parameter to on-break exists is to fix this "feature" although
maybe that's just because I've only ever used it for this. :) Anyway, try
changing your print lines to :
print $classdesc (,{col1},50) bold shade on-break print = CHANGE level =
1 skiplines=1
print $desc (,{col2},40) shade on-break print = CHANGE
level = 2 skiplines=1
HTH,
Ray
-----Original Message-----
From: Joe Nodeland [mailto:jnodeland@DCCNET.COM]
Sent: Wednesday, September 01, 1999 2:40 PM
To: Multiple recipients of list SQR-USERS
Subject: Re: on-break causes blank lines to be inserted
That's not the problem. I've tried
let $ClassDesc = 'XXX'
let $desc = 'XXX'
and still get the same problem.
----- Original Message -----
Subject: Re: on-break causes blank lines to be inserted
> This happens, if you print variable exceeds the page width. In first case
,
> you have the $ClassDesc and $desc printing within the page width and it
> doesn't insert a blank like, but in second case it should be.
> Try to keep the print string up to the page width. You can find the
maximum
> column by using #SQR-MAX-COLUMNS reserved variable.
>
> Hope this helps you!
> -Alok Kulshrestha
> Ext. 39083
> IS11-121 (TGSIF)
>
>
> > -----Original Message-----
> >
> > Tried that, makes no difference. Now my code looks like
> >
> > begin-procedure AdvanceLine
> > position (+1)
> > end-procedure
> >
> > print $classdesc ( ,{col1},50) bold shade on-break print = CHANGE
> > level = 1 before = AdvanceLine
> > print $desc (+1,{col2},40) shade on-break print =
> > CHANGE level = 2> >
> > This got rid of one blank line, there is still a blank line where the
> > $desc break is (if the $desc data doesn't change, a blank line is
printed)
> >
> > If I change the code to
> > print $classdesc ( ,{col1},100) bold shade on-break print = CHANGE
> > level = 1 before = AdvanceLine
> > let $desc = &locdesc || ' *** ' || &EqNumdesc
> > print $desc ( ,{col2},90) shade on-break print =
> > CHANGE level = 2 before = AdvanceLine
> >
> > the second call to Advance line never occurs. Some days I wish I did
not
> > write sqr reports....
> >
> >
> > ----- Original Message -----
> >
> >
> > TRY copying pm.description into some variable and printing it
after
> > ...
> >
> > like
> >
> > pm.Description &desc
> > print &desc (+1,{col3}) bold
> > >
> >