replaceText problem

Peter Haworth pete at lcsql.com
Sat Jan 3 15:23:29 EST 2015


I finally got replaceText working although still not sure why it returned a
runtime error.

I had to include "(?m)" at the start of the regex in order to to make it
work in multiline mode.

The "^" at the start of my regex means "start of line" but unless you are
in multiline mode, line breaks aren't recognized by regex.

Doc Hawkins: As others have pointed out, you could have an if statement
with breakpoint on the same line or another statement before it separated
by a semicolon. However, this code will only ever examine my own scripts so
I can make sure that breakpoints only ever appear on a line on their own.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Sat, Jan 3, 2015 at 11:14 AM, J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> On 1/3/2015 1:06 PM, Peter M. Brigham wrote:
>
>> Well, you actually can do this:
>>     if the shiftkey is down then breakpoint
>>
>> Whether you should is another matter.
>>
>
> Oh right. So instead of my other suggestion:
>
>   filter tScript without "*breakpoint*"
>
> It will destroy any lines that incorporate semicolons to add a second
> command statement to the same line though.
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.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