none
string concatination functoid insert LF and CR

    Question

  •  

    how to insert line breaks and carriage return in the string concatination functoid

     

    BAsically i got an address in a string and i need to break it up into 3 lines how can i do this.?

    Thursday, March 13, 2008 4:43 PM

Answers

  • I would try using a scripting functoid instead to do the concatenation. So for the script functoid in C# you can have a function like:

     

    Code Snippet

    public string ScriptConcatenation(string param1) {

      return param1 + "\n\r";

    }

     

     

    When testing, the output of the transformation will not show the newline but when viewed as Xml but if you open in WordPad you will see the newline there.

     

    Thanks,

     

    Friday, March 14, 2008 4:34 AM
    Moderator

All replies

  • I would try using a scripting functoid instead to do the concatenation. So for the script functoid in C# you can have a function like:

     

    Code Snippet

    public string ScriptConcatenation(string param1) {

      return param1 + "\n\r";

    }

     

     

    When testing, the output of the transformation will not show the newline but when viewed as Xml but if you open in WordPad you will see the newline there.

     

    Thanks,

     

    Friday, March 14, 2008 4:34 AM
    Moderator
  •  

    Thank you
    Friday, March 14, 2008 7:55 PM
  • Could you mark this thread as answered? Thanks!

     

    Friday, March 14, 2008 8:21 PM
    Moderator