I want to all data in message is same line

I want to all data in message is same line

Now:
image

I want to same line as below.
image

Please guide me about it.

Removing ‘Carriage Return’ or ‘Line Feed’ character should get you the expected result.
Here is what you can do:
Assign → newString = origString.Replace(vbCr, "").Replace(vbLf, "")

Source:

Hi @fairymemay,

You can try this below code:

stroutput = String.Join(" ",Split(Strinput.ToString,Environment.Newline.ToArray(),StringSplitOptions.RemoveEmptyEntries))

or

Use Assign - Strinput="|USD"+Environment.NewLine+"|111111111|CCSXSXXXX"

Thanks,
Neelima.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.