Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:41 AM
Ken Fine
Guest
 
Posts: n/a
Default creating manual line breaks in a single string

I want a script that will force a manual line break after 'N' characters. In
other words, it will take a string, say, strString, and insert manual line
breaks every 78 characters. Anyone have some snippets I can poach?

My e-mailer component will do this for me, but I'd like to know how to do it
"by hand" if necessary.

Thanks,
-KF



  #2  
Old July 19th, 2005, 11:41 AM
Chris Hohmann
Guest
 
Posts: n/a
Default Re: creating manual line breaks in a single string

"Ken Fine" <kenfine@u.washington.edu> wrote in message
news:bvs4e9$p02$1@nntp6.u.washington.edu...[color=blue]
> I want a script that will force a manual line break after 'N'[/color]
characters. In[color=blue]
> other words, it will take a string, say, strString, and insert manual[/color]
line[color=blue]
> breaks every 78 characters. Anyone have some snippets I can poach?
>
> My e-mailer component will do this for me, but I'd like to know how to[/color]
do it[color=blue]
> "by hand" if necessary.
>
> Thanks,
> -KF[/color]

http://groups.google.com/groups?selm...TNGP09.phx.gbl


  #3  
Old July 19th, 2005, 11:41 AM
Ken Fine
Guest
 
Posts: n/a
Default Re: creating manual line breaks in a single string


Awesome, Chris, that really did the trick. Very useful function. Thanks so
much!

-KF


"Chris Hohmann" <nospam@thankyou.com> wrote in message
news:OX3wbZ46DHA.2264@tk2msftngp13.phx.gbl...[color=blue]
> "Ken Fine" <kenfine@u.washington.edu> wrote in message
> news:bvs4e9$p02$1@nntp6.u.washington.edu...[color=green]
> > I want a script that will force a manual line break after 'N'[/color]
> characters. In[color=green]
> > other words, it will take a string, say, strString, and insert manual[/color]
> line[color=green]
> > breaks every 78 characters. Anyone have some snippets I can poach?
> >
> > My e-mailer component will do this for me, but I'd like to know how to[/color]
> do it[color=green]
> > "by hand" if necessary.
> >
> > Thanks,
> > -KF[/color]
>
>[/color]
http://groups.google.com/groups?selm...TNGP09.phx.gbl[color=blue]
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles