470,609 Members | 1,403 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,609 developers. It's quick & easy.

Help with string manipulation

Hi folks, I'm stuck.
I need to manipulate a string in the following way. I want to take
a string and, if it has a length of over 60 characters, ensure every
sixtieth character is a blank space. If a letter falls within the
60th or multiple of sixty character I want to step back to the
beginning of that word and push it to the 61st character and pad the
previous area to 60 characters with spaces.
Make sense?

Any help greatly appreciated. I've gotten it to work but only when
the string is less than 120 characters.
Nov 12 '05 #1
0 1845

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Tad Johnson | last post: by
9 posts views Thread by mjakowlew | last post: by
1 post views Thread by collinse | last post: by
32 posts views Thread by tshad | last post: by
4 posts views Thread by WaterWalk | last post: by
4 posts views Thread by MooMaster | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.