Blockland Forums > Modification Help

Remove the first character from a string

Pages: (1/2) > >>

Swollow:

how to?

Ipquarx:

Simple:
--- Code: ---%string = getSubStr(%string, 1, strLen(%string) - 2);
--- End code ---


Swollow:

thanks
didn't work

CityRPG:


--- Quote from: swollow on January 17, 2012, 01:52:21 PM ---thanks
didn't work

--- End quote ---
Don't have access to Blockland right now, but from memory, I think it's:

getSubStr(source, starting point, num of characters)


--- Code: ---%string = getSubStr(%string, 1, strLen(%string));
--- End code ---

That should do it.

If not, just type in getSubStr(); and it will output guidelines for that function. Almost all engine functions do that.

Ipquarx:


--- Quote from: swollow on January 17, 2012, 01:52:21 PM ---thanks
didn't work

--- End quote ---
What do you mean.
edit: oshoot thats right
here you go:
--- Code: ---%string = getSubStr(%string, 1, strLen(%string) - 1);
--- End code ---


Pages: (1/2) > >>

Go to full version