× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Thursday 23 May 2002 4:48 pm, Wills, Mike N. (TC) wrote:
> I need to do some text wrapping and am trying to figure out how to
> locate the last space in the text. We are on V4R5. I know I can do it
> in a loop, I was just wondering if there is already a bif that can do
> it.
>
> Mike Wills

Hi Mike

There's a program (DBG040R3) in my DBG/400 package that does word
wrapping. Pass it X lines of Y long in an array and the max length Z to
wrap to and it passes back an array of lines word wrapped to that length,
along with the resultant number of lines. It's actually RPG400 code, but
it works well so I've not seen a reason to change it. If you want it grab
the dbg400.zip package from http://www.dbg400.net/dbg400.html and scan
the ALLSRCMBRS file for DBG040R3.

Regards, Martin
--
martin@dbg400.net  jamaro@firstlinux.net  http://www.dbg400.net        /"\
DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open        \ /
Source free test environment tools and others (file/spool/misc)         X
[this space for hire]  ASCII Ribbon Campaign against HTML mail & news  / \


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.