rant: truewordOffset
Mark Wieder
ahsoftware at sonic.net
Tue Apr 20 12:04:55 EDT 2021
On 4/20/21 6:00 AM, Niggemann, Bernd via use-livecode wrote:
> Mark Wieder wrote
> You can't just say
>
> put truewordOffset("font", tText) into tOffset
> because it might encounter "fontTable" first.
>
>
> If I set wholematches to true it works for me
Unfortunately not here. Even with wholematches true
truewordOffset("BT", tText)
also catches instances of
"btn"
as well as "bt"
I have to check the result:
put truewordOffset(tValue, tText) into tPos
if trueword tPos of pText is tValue then
# we found a trueword
end if
--
Mark Wieder
ahsoftware at gmail.com
More information about the use-livecode
mailing list