Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Liemaeu |
My string s is “X1”
The string s is from the array cutted_string (s = cutted_string[0]), which was created by using the .split() function (cutted_string = a_string.split(“_”, true, 1)
If I try to erase the X:
var new_s = s.erase(0, 1)
print(new_s)
I get:
Null
But it should be
1
(as string)
What am I doing wrong?
Thanks!