Hi all ,
i want only the second line and the last line to be printed from in a message box or a writeline activity , and i’m not able to split it , can pls anyone hep , its urgent
Hi,
Can you try the following expression?
2nd line
yourString.Split(chr(10)).Skip(1).First.Trim
last line
yourString.Split(chr(10)).Last.Trim
Regards,
Hi yoichi , thank you so much for ur fast reply
i really really felt happy
But the last line isn’t printing at all it shows blank
Hi,
There might be linebreak at the end of the string. How about the following?
yourString.Trim.Split(chr(10)).Last.Trim
Regards,
Tqsm its working now
1 Like
can you please tell why we are using the chr(10) ??
i tried changing it to 11 and 12 and other numbers , but it is printing whole data , so i dint understand that part
Hi,
chr(10) means LineFeed. We shouldn’t change this value in this case.
Regards,
ohh ok , thank you so much