Reading From Multi-Line and Make It One Line using assign activity

Hi,

Kindly, I need your support, I read data from a field on the website using get text activity, but sometimes the user writes the text in multi-lines and there is a space in the beginning or in the ending.

How I can make the data in one line? and how I can remove the space from the beginning or the ending?

Example :

A B C
1 2 3
X Y Z

I want it to be
A B C 1 2 3 X Y Z

There is a space in the beginning and ending but it is removed from the example after I click Reply button.

Well,

You can replace the Environment.Newline by " " and then trim the whole string so that trailing and leading spaces are trimmed.

YourFinalString = (RawString.Replace(Environment.Newline," ")).Trim

2 Likes

Thanks a lot.

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