|
Current example of SUBSRT() in the manual, does not do what is is supposed to do:
EXAMPLE $x = SUBSTR(@USERID, LEN(@USERID) - 2, 2) ; get the last 2 chars of the userid
should be EXAMPLE $x = SUBSTR(@USERID, LEN(@USERID) - 1, 2) ; get the last 2 chars of the userid
The error of course is that LEN(@USERID) - 2 will start at the wrong position.
Since I am new at KiXtart, and therefore I am not sure wether this issue has been mentioned before, please ignore request if it has already been met, otherwise please update the manual.
Thanks.
|