| Blockland Forums > Modification Help |
| If Containing |
| << < (4/4) |
| jes00:
Now how would I give the seventh, eighth, and ninth characters variables? |
| Superb:
--- Quote from: jes00 on December 11, 2011, 06:16:27 AM ---Now how would I give the seventh, eighth, and ninth characters variables? --- End quote --- %eightChar = getSubStr(%somestring,8,1); etc, etc. |
| jes00:
--- Quote from: Superb on December 11, 2011, 09:22:26 AM ---%eightChar = getSubStr(%somestring,8,1); etc, etc. --- End quote --- Should this work? and whats the 1 for? --- Code: ---%numOne = getSubStr(%msg , 7, 1); --- End code --- |
| Chrono:
getSubStr(string, start, length); meaning if: string is "i am a duck" start is 4 length is 3 That would give " a " --- Code: ---01234 i am a duck 123 --- End code --- |
| Navigation |
| Message Index |
| Previous page |