Spliting each characters in word

Hi Team,

I want to split a word such that I get each and every characters.


String s = “UiPath”

I want a charArray such that I have {‘U’, ‘i’, ‘P’, ‘a’, ‘t’, ‘h’}

Thanks and Regards,


Try this.

        CharArray [] chr = s.ToCharArray


you can use this String.ToCharArray Méthode (System) | Microsoft Learn


Try with this in an assing activity with a Char() variable.



What is the Variable type of chr???

Like the full form of the type?

eg: Fro string array, it is (System.String)


It should be like this: System.Char

First Select Array of [T] and then type browse for System.Char