lineOffset wildcard

Bob Sneidar bobsneidar at iotecdigital.com
Mon Apr 19 14:02:36 EDT 2021


I think either matchText, or else wholematches used with some form of xOffset is what you want. 

Bob S


> On Apr 19, 2021, at 09:29 , Mark Wieder via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I'm sure I'm missing something simple here but...
> 
> I need to use a wildcard in the lineOffset function but I can't seem to find the correct invocation.
> 
> put lineoffset("local*"&tFunctionName, tScript) into tPos
> always returns zero
> 
> put lineoffset(tFunctionName, tScript) into tPos
> of course returns a line number, but possibly not the right one
> 
> put lineoffset("local"&&tFunctionName, tScript) into tPos
> gives me the correct line in some cases but fails for
> local tSomeFunction,tOtherFunction
> 
> Can anyone give me the correct syntax for using a wildcard string as an argument to lineOffset? Thanks in advance - I've spent enough time on my own trying to figger this out.
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list