I have string
String = “ABC,DEF,GHI,JKL”
I want to convert it in array or list
Outcome = {“ABC”,“DEF”,“GHI”,“JKL”}
Please help me
I have string
String = “ABC,DEF,GHI,JKL”
I want to convert it in array or list
Outcome = {“ABC”,“DEF”,“GHI”,“JKL”}
Please help me
Hi @Dmitri00007
Try the expression
arrvalue=strValue.Split({","c}, StringSplitOptions.RemoveEmptyEntries)
Regards
Gokul
Hi @Dmitri00007
I think below expression can help you understand.
{“ABC”,“DEF”,“GHI”,“JKL”} = “ABC,DEF,GHI,JKL”.Split(“,”.ToCharArray)
Hi @Dmitri00007 ,
For an Array →
"ABC,DEF,GHI,JKL".Split({","c},StringSplitOptions.RemoveEmptyEntries).ToArray()
For a List →
"ABC,DEF,GHI,JKL".Split({","c},StringSplitOptions.RemoveEmptyEntries).ToList()
Kind Regards,
Ashwin A.K