offset broken?

Earthednet-wp prothero at
Sun Feb 23 22:13:35 EST 2014

I always had trouble getting my students to read instructions. I used formatting and hilighting to emphasize critical points, which helped a bit. Anyway, I'll have to be more diligent about reading the docs. I'm also amazed at the amount of discussion this topic generated.

William Prothero

> On Feb 23, 2014, at 2:41 PM, "J. Landman Gay" <jacque at> wrote:
>> On 2/23/14, 2:53 PM, Earthednet-wp wrote:
>> Folks, Perhaps I missed it in the docs, but I didn't see where it
>> said the char count returned by offset was measured from the skipped
>> chars count. I do skim, so could have easily missed the fine print.
> It's in the last paragraph in the "offset" entry:
> "If you specify how many charsToSkip, the offset function skips the specified number of characters in the stringToSearch. The value returned is relative to this starting point instead of the beginning of the stringToSearch."
> One of the syntax examples shows it, though it would be easy to miss if you weren't looking for it:
>  offset("b","abacadabra",2) -- returns 6
> -- 
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list