Spliting each characters in word

Hi Team,

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

Eg:-

String s = “UiPath”

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

Thanks and Regards,
@hacky

@hacky

Try this.

        CharArray [] chr = s.ToCharArray

Hi,

you can use this https://docs.microsoft.com/fr-fr/dotnet/api/system.string.tochararray?view=netframework-4.8

@hacky,

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

yourString.ToCharArray()

@lakshman

What is the Variable type of chr???

Like the full form of the type?

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

@hacky

It should be like this: System.Char

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