Mike,
I tried your code with the same result. As you say if the 'c' is not the last character in the string the correct value is returned, however if it is you get a 0. Maybe this is an 'issue' ? I am sure RBTI will sort this out, (or put us 'straight'), if you report this. Regards, John Docherty From: [email protected] [mailto:[email protected]] On Behalf Of Michael J. Sinclair Sent: Sunday, 19 August 2012 4:31 p.m. To: RBASE-L Mailing List Subject: [RBASE-L] - Syntax with SLOCP Hi All, When I have this statement in a command file... SET VAR vtest INTEGER SET VAR vtest = (SLOCP('abc','c',1)) I get a result of 0 I am trying to use the command to let me know that the 1st instance of the character 'c' is at position 3. Why am I gettting a 0? The command works fine if the string is not in the last position. What am I doing wrong? Thanks Mike

