I'm also annoyed at truewordOffset.
Consider this:

you can get an offset in truewords (the number of truewords that occur before the given argument,

but you can't get an offset *to* a given trueword.

put truewordOffset(tString, tText, tSkip) will give you a value in truewords. And you can plug that value into tSkip for the next iteration to find the next occurence of the string. But only a string. You can't say

put truewordOffset(trueword tTrueWord, tText, tSkip)

And yes, I've got a one-line workaround for it, but what use is this on its own? You can't just say

put truewordOffset("font", tText) into tOffset

because it might encounter "fontTable" first.

I can't come up with a use for truewordOffset the way it currently exists, and it isn't used in any of the IDE stacks, so apparently the team didn't have a use for it either.

--
 Mark Wieder
 ahsoftw...@gmail.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to