lineOffset wildcard

Mark Wieder ahsoftware at
Mon Apr 19 15:32:42 EDT 2021

On 4/19/21 12:11 PM, Bob Sneidar via use-livecode wrote:
> Someone needs to update the dictionary then.
> wholeMatches
> Syntax
> set the wholeMatches to {true | false}
> Summary
> Specifies whether the lineOffset, wordOffset, and itemOffset functions search only for entire lines, words, or items.

Here's what I meant:

setting the wholeMatches to true will match the input string verbatim, 
without regard to wildcards. So

lineOffset("local tFunction", ttext) will only match
local tFunction
lineOffset("local*tFunction", tText) will only match
local tFunction
and not
local someThing, tFunction, somethingElse

  Mark Wieder
  ahsoftware at

More information about the use-livecode mailing list