[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



I never know that you can do an on-break for a print statement.  I have
always use the on-break mechanism on a column in my begin-select statement.
Have you tried to do it that way instead? I think that way, you will have a
better picture of what's going on with the data and the breaks.
I have only coded SQR programs for less than a year... but many times have I
feel like I'm going insane because of it!

> -----Original Message-----
> From: Joe Nodeland [SMTP:jnodeland@DCCNET.COM]
> Sent: Wednesday, September 01, 1999 12:22 PM
> To:   Multiple recipients of list SQR-USERS
> Subject:      Re: on-break causes blank lines to be inserted
>
> 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
>       >
>