Author Topic: If Containing  (Read 1205 times)

Now how would I give the seventh, eighth, and ninth characters variables?

Now how would I give the seventh, eighth, and ninth characters variables?

%eightChar = getSubStr(%somestring,8,1); etc, etc.

%eightChar = getSubStr(%somestring,8,1); etc, etc.
Should this work? and whats the 1 for?
Code: [Select]
%numOne = getSubStr(%msg , 7, 1);

getSubStr(string, start, length);

meaning if:
string is "i am a duck"
start is 4
length is 3
That would give " a "
Code: [Select]
01234
i am a duck
    123