Parsing Long text string into smaller strings

GGrimm@pcc-structurals.com GGrimm@pcc-structurals.com
Mon, 24 Jul 2000 16:03:31 -0700


     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.