Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > creating manual line breaks in a single string

Reply
Thread Tools

creating manual line breaks in a single string

 
 
Ken Fine
Guest
Posts: n/a
 
      02-05-2004
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



 
Reply With Quote
 
 
 
 
Chris Hohmann
Guest
Posts: n/a
 
      02-05-2004
"Ken Fine" <> wrote in message
news:bvs4e9$p02$...
> 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


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


 
Reply With Quote
 
 
 
 
Ken Fine
Guest
Posts: n/a
 
      02-05-2004

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

-KF


"Chris Hohmann" <> wrote in message
news:...
> "Ken Fine" <> wrote in message
> news:bvs4e9$p02$...
> > 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

>
>

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



 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolve single line with multiple items into mutliple lines, single items ela Perl Misc 12 04-06-2009 06:47 PM
Vertical Lines on the LCD screen - Need service manual for Toshiba Laptop (not a users manual) marzdra@yahooo.con Computer Support 1 12-16-2006 09:18 PM
Beginner: read $array with line breaks line by line Marek Stepanek Perl Misc 12 09-02-2006 10:27 AM
Force multi line field value to output with line breaks? bernadou ASP .Net Web Controls 2 01-23-2006 01:23 PM
Line breaks in string containing Javascript Travis Pupkin ASP General 4 12-10-2004 08:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57