I'm adding a check for breakpoint commands to my build procedures. Basically check through the command of every script and issue the following command:
replaceText(pScript,"(^\s*breakpoint$"," ") It looks for some number of space at the start of a line, followed by the word breakpoint, then the end of the line I've tried the regex in a regex test program I have which also allows replacement and it works fine. However the first time it is executed in my script, I get a runtime error (Object: property is not an integer) near "-8" I've tried replacing the space-within-quotes in the replacement string with empty, even left the replacement string out completely but same error. Also tried a matchText command with the same regex and it works fine. Grateful for any ideas on what might be causing this. Pete lcSQL Software <http://www.lcsql.com> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode