Page 1 of 1
Bad menuName
Posted: Wed Nov 25, 2015 4:28 pm
by dunbarx
I tried to
Code: Select all
set the menuName of card button "xyz" to stack "xxx"
I get an error stating that "(Chunk: source is not a container)"
It turns out the dictionary and the user guide are wrong. You cannot use the word "stack" at all. has to be
Code: Select all
set the menuName of card button "xyz" to "xxx"
Worth mentioning? I would have simply added a note to the dictionary, but it has been a while since that was an option.
Craig Newman
Re: Bad menuName
Posted: Wed Nov 25, 2015 5:37 pm
by FourthWorld
Using:
...resolves to an object.
To obtain a string usable as a menu item try:
or:
Code: Select all
...the long name of stack "stackname"
or:
Code: Select all
...the short name of stack "stackname"
Re: Bad menuName
Posted: Wed Nov 25, 2015 5:42 pm
by Klaus
We know this, Richard, but the dictionary obviously doesn't!

Re: Bad menuName
Posted: Wed Nov 25, 2015 5:48 pm
by FourthWorld
My bad. Given where this was posted and the content of the OP I thought it was a request for assistance rather than a bug report.
I've filed the bug report for Craig:
http://quality.livecode.com/show_bug.cgi?id=16491
Re: Bad menuName
Posted: Wed Nov 25, 2015 6:19 pm
by dunbarx
Richard.
I struggled with this for a while, being the first time I ever played with it. It seemed both intuitive and reasonable to me that the "target" actually include the object (stack) reference, and not just the name of the stack. It was only because I am used to screwing around in this way that I tried the name alone, not expecting it to work at all.
A side note, what is going on with the dictionary notes? They are as ephemeral as the "sample stacks".
Craig
Re: Bad menuName
Posted: Wed Nov 25, 2015 7:24 pm
by FourthWorld
"ephemeral"? What's happening with those?
Re: Bad menuName
Posted: Wed Nov 25, 2015 7:33 pm
by dunbarx
Richard.
They are only intermittently available. That is, they are almost always not.
I check now and then for the entries where I placed notes, so I can see if they are listed. Once in a while I can see them. I think they are invaluable, for just the above sort of issues, never mind helpful twists or cautions.
Craig
Re: Bad menuName
Posted: Wed Nov 25, 2015 7:54 pm
by FourthWorld
dunbarx wrote:They are only intermittently available. That is, they are almost always not.
Work was done on that a few versions back. If you're still seeing problems there please file a bug report.