Page 1 of 1 1
Topic Options
#195933 - 2009-09-16 04:20 PM manual: please correct typo in example function substr()
tonb Offline
Just in Town

Registered: 2009-09-16
Posts: 1
Loc: Amsterdam, Holland
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.

Top
#195944 - 2009-09-18 08:19 AM Re: manual: please correct typo in example function substr() [Re: tonb]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Good one! I've updated the manual.

Thanks for the report!

Ruud

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 360 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.05 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.