How can i remove some amount of chars from a string?
2 replies, posted
Okay, so let us say there is this string "TestString" I then wanna remove some of them like if there was a way like this: string.Remove(2, right) then the string would look like this "TestStri".
If you need some more information please write down below.
string.sub( 1, #string - 2 )
[editline]5th October 2016[/editline]
Strings are immutable, meaning you cannot directly change them, but you can get new ones.
[QUOTE=code_gs;51155866]string.sub( 1, #string - 2 )
[editline]5th October 2016[/editline]
Strings are immutable, meaning you cannot directly change them, but you can get new ones.[/QUOTE]
Thanks :)
Sorry, you need to Log In to post a reply to this thread.