I have a name stored as a variabel (as a string), it’s both first and lastname separated by space. I now try to break them a part in to two variables, firstname and lastname. But uipath don´t reqonice the space, I can´t use mystring.Split(" ".ToCharArray)(2).ToString
How can I find out what character other then space it can be?
See my solution. It accounts for any whitespace (tabs, newlines, spaces, etc.). It also accounts for multiple spaces, so string "hello there, friend" would split to {“hello”, “there,”, “friend”} despite the variable number of spaces.
@Zlotzky
The error message when applying Anthony_Humphries answer shows that your variable type should be an Array of String rather than simply a String.
If you want to assign directly the firstname and lastname values, please apply proper index: