creating manual line breaks in a single string

Discussion in 'ASP General' started by Ken Fine, Feb 5, 2004.

  1. Ken Fine

    Ken Fine Guest

    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
     
    Ken Fine, Feb 5, 2004
    #1
    1. Advertising

  2. "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=
     
    Chris Hohmann, Feb 5, 2004
    #2
    1. Advertising

  3. Ken Fine

    Ken Fine Guest

    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=
    >
    >
     
    Ken Fine, Feb 5, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peng Yu

    python command line manual

    Peng Yu, May 24, 2010, in forum: Python
    Replies:
    2
    Views:
    325
    Asun Friere
    May 25, 2010
  2. bernadou

    Force multi line field value to output with line breaks?

    bernadou, Jan 22, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    370
    bernadou
    Jan 23, 2006
  3. Travis Pupkin

    Line breaks in string containing Javascript

    Travis Pupkin, Dec 9, 2004, in forum: ASP General
    Replies:
    4
    Views:
    232
    Travis Pupkin
    Dec 10, 2004
  4. Marek Stepanek
    Replies:
    12
    Views:
    422
    Peter J. Holzer
    Sep 2, 2006
  5. ela
    Replies:
    12
    Views:
    363
    Uri Guttman
    Apr 6, 2009
Loading...

Share This Page