Zak_Cooper
(Zak Cooper)
1
I have a string var :
“I’d like to split this string”
Assign :
strArray = split(StrVar, " ")
Writeline :
strArray(0)
Returns = “I’d”
Writeline:
strArray(1)
Returns error: Write Line: Index was outside the bounds of the array
Any idea what im doing wrong? Im trying to just grab the first 2 words in a string, split on whitespace.
Pablo_Sanchez
(Pablo Sánchez Hernández)
2
Try this:
Writeline: strArray(1).ToString
Zak_Cooper
(Zak Cooper)
3
I thought it wouldn’t matter as its an array of strings ?
but I get the same error
Pablo_Sanchez
(Pablo Sánchez Hernández)
4
Damn ye, sorry I though it was the reason but no… Maybe UiPath bug? Have you tried to close it and rerun that test?
Look this screenshot:
Hope it helps mate
1 Like
Zak_Cooper
(Zak Cooper)
5
ha that actually fixed it ! been stressing for over an hour on this lol, ty pal much appreciated
1 Like
Pablo_Sanchez
(Pablo Sánchez Hernández)
6
Wow haha!! Those things happens XD
Glad to have been useful
Regards,
Pablo
1 Like
system
(system)
Closed
7
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.