removing first characters of a string
MorgoZ
Posts: 116
Hi!
Is there a better way to do this?
acAux = remove_string(left_string(acMessage,2),acMessage,1)
What i´m trying to do here is just to take the first two digits from "acMessage" and remove them from the string, but i think that this code is not a pretty way to solve it....
Any ideas?
P.D: How can i insert "code text-box" in a forum message?
Is there a better way to do this?
acAux = remove_string(left_string(acMessage,2),acMessage,1)
What i´m trying to do here is just to take the first two digits from "acMessage" and remove them from the string, but i think that this code is not a pretty way to solve it....
Any ideas?
P.D: How can i insert "code text-box" in a forum message?
0
Comments
Andy
plenty of ways to do this
I believe this does the complete opposite and copies everything in the string into acAux except the first two chars and doesn't remove anything from the original string either.
If you don't care what the first 2 characters are and simply want to remove them from the string you can also do just this:
You don't have to assign the first 2 characters to another variable if you don't want to.
thanks to all of you!
this will be my choice for now