[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Wrap...Keep-Top



Todd,

I cannot duplicate your problem:

==== Test SQR program ====

Begin-Setup
 Declare-Layout Default
 End-Declare
End-Setup

Begin-Report
 Let $V = 'dlkfjl sdkjf sldfjl sdfksl ksl dfkjlsd kfjsldk fjsdlfk sldh lshd lsh ido sldi.'
 Print '         1         2         3         4         5         6         7     ' (1,1)
 Print '123456789012345678901234567890123456789012345678901234567890123456789012345' (2,1)
 Print $V (5,20) Wrap 50 3
 Print 'Maximum columns is set to ' (10,1)
 Print #SQR-MAX-COLUMNS () Edit 88888
End-Report

===========================

===== Generate Output =====


              1         2         3         4         5         6         7
     123456789012345678901234567890123456789012345678901234567890123456789012345


                        dlkfjl sdkjf sldfjl sdfksl ksl dfkjlsd kfjsldk
                        fjsdlfk sldh lshd lsh ido sldi.



     Maximum columns is set to 75

===========================

I tested this on a Sun/SPARC/Solaris platform using SQR 4.3.4.

I tested this on an Intel/Windows NT platform using SQR 4.3.4.

For me, it is wrapping correctly (start at column 20 for 50 columns with a max of 3 lines).


Peter


On 30 Aug 99, at 18:02, Todd Becker wrote:

Date sent:              Mon, 30 Aug 1999 18:02:42 -0500
Send reply to:          SQR-USERS@list.iex.net
From:                   Todd Becker <tbecker@CCCIS.COM>
Subject:                Wrap...Keep-Top
To:                     Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>

> Hi Everyone!
>
> Using SQR 4.3.4, column positioning seems to work acceptably for
> determining the starting position for a printed item, however, if a length
> is specified, the proportions seem to change.
>
> For example, lets say my page with is 75 units, as determined by
> #sqr-max-columns.
>
> The following is an explanation, using estimated values.  I place a print
> command for a text field using the following statement:
>
>      print $sText   (  ,20,  ) wrap 50 5
>
> Here is a picture of how the output looks:
>
>      |---5--10--15--20--25--30--35--40--45--50--55--60--65--70--75|
>      |                                                            |
>      |               dlkfjl sdkjf sldfjl sdfksl                   |
>      |               ksl dfkjlsd kfjsldk fjsdlfk                  |
>      |               sldh lshd lsh ido sldi.                      |
>
> Although the wrap distance is calculated correctly for the page, the text
> wraps extremely early.
>
> If I modify my SQR statement to look like this:
>
>      print     $sText    (  ,20,  ) wrap 100 5
>
> Here is a picture of how the ouput changes:
>
>      |---5--10--15--20--25--30--35--40--45--50--55--60--65--70--75|
>      |                                                            |
>      |               dlkfjl sdkjf sldfjl sdfksl ksl dfkjlsd kfjs  |
>      |                                                            |
>      |               ldk fjsdlfk sldh lshd lsh ido sldi.          |
>
>
> Although the wrap distance expands far beyond the edge of the page, the
> text wraps appropriately.  However, because the wrap value is so large,
> there is an explicit line feed which creates a blank line in the output.
>
>
> Any suggestions would be greatly appreciated.
>
>
> TIA,
>
> Todd Becker
>