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. Best, Bill
William Prothero http://es.earthednet.org > On Feb 23, 2014, at 2:41 PM, "J. Landman Gay" <[email protected]> > 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 | [email protected] > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
