replaceText problem

Peter Haworth pete at
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.

lcSQL Software <>
Home of lcStackBrowser <> and
SQLiteAdmin <>

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

> 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
> HyperActive Software           |
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the Use-livecode mailing list