Hi Team,

I am not able to find str.tocharArray() while trying to reverse a string I am getting only str.tochar
(), should I add any libraries to get str.tocharArray()? please help

1 Like

Hi @Deva2

Welcome to the community!!

What’s the data type of the str variable? I think it’s in generic type.

Try this


Let know whether it helps.


welcome to uipath community
here you go
hope its resolved
with single expression its possible
str_input = New String(str_input.ToString.ToCharArray.Reverse().ToArray()) (9.3 KB)

Cheers @Deva2

1 Like

Hi Fernado,

the data type is of Generic In default after changing the datatype from generic to string I am able to get str.ToCharArray().:slight_smile:

thanks for the info.

1 Like

thank you palaniyappan, for giving the inputs in other way tooo… helped me in improvint my knowledge :slight_smile:


no worries
Cheers @Deva2

1 Like

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