Put multiple lines of text in one single line

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ronwilliams
    Forum Member
    • Jun 2008
    • 248

    Put multiple lines of text in one single line

    The quickest way to put:

    a= "Hi there,
    my name is John"

    into one line b= " Hi there, my name is John"

    The text is read from a button, therefore a is on different lines.
  • arb
    Indigo Rose Customer
    • Jul 2007
    • 163

    #2
    b = string.replace(a, "\r\n", "", false);

    Comment

    • ronwilliams
      Forum Member
      • Jun 2008
      • 248

      #3
      Great stuff! Thanks arb

      Comment

      Working...
      X