Parsing Long text string into smaller strings

John Webster john.webster@cdp.co.nz
Tue, 25 Jul 2000 14:10:23 +1200


Provided you've kept up with releases, and depending on the platform, try

>REPORT supervisor-notes WRAP 39 ....

It's as easy as that.
--------
From:	GGrimm@pcc-structurals.com
Sent:	July 25, 2000 11:43 AM
To:	powerh-l@sphere.swau.edu
Cc:	
Subject:	Parsing Long text string into smaller strings

     I would like some "elegant" solution to my challenge.  If any of you 
     have something to suggest, please provide psuedo-code either to the 
     list or me privately.
     
     The QUIZ report has a long text description field of 360 characters, 
     consisting of from 0 or more words separated by spaces.  I need to 
     parse them into words in 39 character strings.  The math shows the 
     most strings would be 10.  If a word exceeds 39 characters (a user 
     error) we would parse at 39 characters, not a space.
     
     A report mock up would look something like the following:
     
     Employee  --Last Name--  Hire Date  -Marital-  --Supervisor notes---
     
     080123    SMITH          01/15/92   MARRIED    This employee has ..
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ and furthermore, ...
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ with never any .....
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ and brings flowers..
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ on occassion even...
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ buys lunch and has..
     _  _  _  _  _  _  _  _  _  _  _  _  _  _  _  _ alway done a good job.
     
     (If the Supervisor notes don't line up under the report heading, 
     please use your imagination.)  Thanks for any ideas.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.