I've been experimenting with it and I now have another question.
I've figured a way to use symbols in the quotations like so:
SYMBOL: a
1 a set
Press *a get* *'*[ drop *_* ... ] border-button gadget.
I don't know if that's the best the way to do it but it works. Although,
what I would like to
If you use global values, this should work:
SYMBOL: a
1 a set-global
Press [ drop a get-global ... ] border-button gadget.
The problem with set and get, is that the 'set' is using the namespace
of the listener which may (likely not) be the namespace of the quotation
being executed by the
Yes, it makes sense to me. Thank you!
Le mardi 18 décembre 2012, John Benediktsson a écrit :
If you use global values, this should work:
SYMBOL: a
1 a set-global
Press [ drop a get-global ... ] border-button gadget.
The problem with set and get, is that the 'set' is using the namespace
Hi,
Yet another problem... Hopefully the last though.
I tried to make a button that changes the text slot of a previously made
label. Here's what I did:
Test label dup gadget.
Press [ drop Worked text ] border-button gadget.
I got an error message saying Data stack underflow when I clicked it.
I see! Thank you for your help and your explanations!
2012/12/17 Jon Harper jon.harpe...@gmail.com
The quotation you pass to the border-button constructor gets called by
the system when the button is pressed. At this time, the stack has nothing
to do with the stack shown in the listener. So