How can I append 'semi-colon' separated from output of for each loop

Output of For each loop be like:
xyz:case/Pay rate
MNY:case/pay cut
YYY:case/Attendance

Wanted expected output : xyz:case/Pay rate;MNY:case/pay cut;YYY:case/Attendance in single string. Can someone help me with this.

@adhishc
Welcome to the forum

define a list of strings Listy
add on each iteration the string to that list

With String.Join(“;”,YourListVar) the semicolon will be inserted

3 Likes

Thank you!! Solved my problem.

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