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

[no subject]



Christian,

The wrap function could be what you're looking for.

Example:
($comments is a line/sentence of text)

print $comments (+1,10,30) wrap 60 6

This will print the line $comments at the specified position, for 60
characters, printing a maximum of 6 lines. Each additional line required as
a result of the wrap will start at position 10 as specified.

You can also use keep-top ( EG print $comments (+1,10,30) wrap 60 6
keep-top) which will retain the current line position in case you need to
print additional details.

Hope this helps,
Orlaith Currid
> -----Original Message-----
> From: Christian Scheiber [SMTP:christians@CROWNLTD.COM.AU]
> Sent: 07 January 2002 22:41
> To:   SQR-USERS@list.iex.net
> Subject:
>
> I'm trying to wrap text within a given space e.g 60 char long. However
> what
> I don't want to do is cut a word off in the middle. Is there any code
> around
> that can check the beginning/end of a word and wrap it accordingly.
>
> Any help much appreciated
>
>
>         Christian Scheiber
>         Analyst Programmer - Financial Systems
>
>         Level 6, Clarke Street
>         Southbank  3006
>         Victoria Australia
>         Phone: 61-3 9292 4174,   Fax: 61-3 9292 4141
>         email: - christians@crownltd.com.au
>
> *This e-mail and any attachments are intended only for the party to whom
> they are specifically addressed and are to be used only for their intended
> purpose. These documents may contain privileged and/or confidential
> information. If you have received this transmission in error please notify
> the sender immediately and destroy all copies in any form. Thank you.
>
>
>
>
>
>
> ======================
> Important information:
> ======================
> Before opening or using any attachments, you should check them for viruses
> and defects.
> If you are not an authorised recipient of this e-mail, please contact
> Crown
> Limited immediately by return e-mail or by telephone on (61-3) 9292 8888.
> In
> this case, you should not read, print, re-transmit, store, disclose, use
> or
> act in reliance on this e-mail including any attachments, and should
> destroy
> all copies of them.
> This e-mail and any attachments are confidential, may be privileged and
> may
> contain copyright material of Crown Limited or third parties.
> Crown is not responsible for any changes made by any third party
> (including
> the addressee) to this e-mail, including any attachments.
> This notice should not be removed.
> ===================================
>
> _____________________________________________________________________
> This message has been checked for all known viruses by UUNET delivered
> through the MessageLabs Virus Control Centre. For further information
> visit
> http://www.uk.uu.net/products/security/virus/

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/