Hello experts!
how to trim string? i have uses string.Replace(" ", “”) but it didn’t worked for me.
Any next idea for this ?
Please help me out !
String to Trime is below:
"RESERVED
(FOREIGNEMPLOYMENT)"
Hello experts!
how to trim string? i have uses string.Replace(" ", “”) but it didn’t worked for me.
Any next idea for this ?
Please help me out !
String to Trime is below:
"RESERVED
(FOREIGNEMPLOYMENT)"
So you mean to replace a enter in string?
If so please try
Str.Replace(environment.newline(),””)
Or try system.text.regularexpressions.regex.replace(str,”\s”,””)
The second will replace all kinds of spaces
PS:
If you are copy pasting please replace inverted comma again with inverted comma in your code
Cheers
Thanks myan !
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.