7.0 can't parse group "someGroup" of (an id)

Peter Haworth pete at lcsql.com
Mon Dec 15 17:40:18 EST 2014


I think the problem is that the compiler is interpreting this as getting
the group of a line and lines don;t have groups of course.

Couple of things to try.

get line 1 of grMs
put the name of (group "RawRow" of it).....

or

put the name of (group "RawRow" of value(line 1 of grMs))....



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 Mon, Dec 15, 2014 at 1:54 PM, Dr. Hawkins <dochawk at gmail.com> wrote:
>
> On Mon, Dec 15, 2014 at 9:58 AM, Bob Sneidar <bobsneidar at iotecdigital.com>
> wrote:
> >
> > What is grNms? What does it contain? If they are only ID’s then your
> > statement would resolve to something like:
> >
> >
> They are long ids or similar (I have a function that chops long id to
>
> group ID 1 of stack "someStack"
>
>
> so grMs is somthing like
>
> group ID 1 of stack "someStack"
> group ID 2 of stack "anotherStack"
> group ID 2 of stack "anotherStack"
>
>
>
> > put the name of  (  group "rawRow" of   (123456))
> >
> > You can see the problem. Now if it contains rows of the long id’s of
> those
> > groups, then your statement might resolve to something like:
> >
> > put the name of  (  group "rawRow" of   (group id 2571 of card id 1002 of
> > stack “myStack"))
> >
> > Is group “rawRow” contained in group id 2571 of card id 1002 of stack
> > “myStack"? If not then that also is a problem.
> >
>
> Yes; it was definitely there.  I got it from the childControlIDs function.
>
> >
> > What I usually do to make troubleshooting simpler is I put every value I
> > am going to enter into a statement into a variable first. In your case
> you
> > can use a breakpoint before the statement and examine the contents of
> grNms
> > to see if it contains what you think it does.
> >
>
>
> It wasn't a runtime error, but a compile error
>
>
> --
> 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



More information about the use-livecode mailing list