How to convert \0xa; to \n using inline C# in functoid

Home Page Forums BizTalk 2004 – BizTalk 2010 How to convert \0xa; to \n using inline C# in functoid

Viewing 1 reply thread
  • Author
    Posts
    • #21686

      Hi All,

      I have developed a Map in Biztalk 2004 and For one element (LogText) , I need to convert \0xa; to \n using inline C#  inside the functoid.

      My C# Inline function is:

      public string MyConcat(string LogText))
      {
      string str=LogText;
      str= LogText.Replace(“\0xa;”, “\n”);
      return str;}

      I tried LogText.Replace(“\0xa;”, “\n”); This did not work.

      But if I try

      LogText.Replace(“0xa;”, “\n”); this works. But the problem is “\” will still remain in the string.

      Can any one please help and let me know the solution.

      Thanks
      Kiran

       

    • #21700

      Try this. Should be work

      str= LogText.Replace(

      @”\0xa;”, “\n”);

      Let me know, if it works.

      • #21705

        Thanks a lot.. That works Great.

        Also I tried

        \\0xd;”, “\n”);

        This also works.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.