Hey guys
So if I have a string variable of “124” (strString = 124)
How can I turn this into an array like below?
1
2
4
I have tried strString.toCharArray(), strString.split(), but didn’t work.
Essentially I want to input these values into a program (i.e. click 1, then click 2, then click 4)
strString.ToCharArray
will give you an array of the characters in your string.
2 Likes
Yes, sorry I get it now haha! Thanks though
I just used a “for each” activity instead.
But it won’t split it by each digit
It gives 124.
I wanted:
1
2
4
SowmyaLeo
(Sowmya Sivakumar)
5
If StringText is the variable that holds the String:
StringText.ToCharArray(0,StringText.Length) should give you the result.
1 Like
system
(system)
Closed
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.