stack "Unt!itled 1" ?
Peter Haworth
pete at lcsql.com
Sat Sep 13 18:38:16 EDT 2014
I think Thierry holds that title, I'm just one of his students!
I made one change to the regex because it wouldnt have recognized anything
other the comments that start with "--". This version will recognize any
of the valid single line comment indicators. Haven't figured out how to
handle block comments in a regex yet, but I'm betting Thierry will chime in!
(?im)^(?!--|#|//)\s*put\s((?!(into|after|before|\\)).)*$
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, Sep 13, 2014 at 1:46 PM, Skip Kimpel <skiplondon at gmail.com> wrote:
> Pete, you are a regex Jedi master.
>
> SKIP
>
> > On Sep 13, 2014, at 4:31 PM, Peter Haworth <pete at lcsql.com> wrote:
> >
> > Sounds like you have a stray "put" with no target.
> >
> > Go into the script editor Find window, click "More", select Stack File in
> > the "Look In" menu, click the Find Options and select "Regular
> Expression"
> > in the Search method options, then type this in the FInd field:
> >
> > (?im)^(?!--)\s*put\s((?!(into|after|before|\\)).)*$
> >
> > It will list any lines in your stack file that contain "put" and don't
> have
> > Into, after, or before.
> >
> > 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, Sep 13, 2014 at 12:54 PM, Dr. Hawkins <dochawk at gmail.com>
> wrote:
> >>
> >> I am seeing the message box opened with
> >>
> >> stack "Unt!itled 1"
> >>
> >> as my project opens; this has been a few weeks, I think (I just noticed
> >> the ! the other day).
> >>
> >> Of course, if I try trap for it, it doesn't happen . . . there are
> various
> >> things, such as an actual "put" to the message box that seem to stop it.
> >>
> >> It appears that the output of the message box is field 1 of cd 1 of
> stack
> >> "Message box"
> >>
> >> So, cleverly, I try to use that--but
> >>
> >> answer field 1 of cd 1 of stack "Message box"
> >>
> >> empties the field before proceeding!
> >>
> >> (I can answer field 2 to get the command without a problem.)
> >>
> >> Can anyone suggest what is going on, or how to find it?
> >> --
> >> Dr. Richard E. Hawkins, Esq.
> >> (702) 508-8462
> >> _______________________________________________
> >> 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
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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