Is the handler in a script-only stack? Maybe the editor doesn't or can't
scan those.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 27, 2019 10:31:22 PM Sannyasin Brahmanathaswami via
use-livecode wrote:
Thanks for answers
On 9/27/2019 11:29 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
No one answers the other question, so I will ask it here, as it goes to Message
Hierarchy
"put gotSomeFruit() into tBanana"
where " gotSomeFruit ()" is among the functions/handlers is found among
"stackInUse". ie.
Thanks for answers of "how to get a list of all stacks?"
put revLoadedStacks()
put the mainstack
stacksinuse
all good! But, they return different resultsvery interesting... stackInUse
does not include some stacks reported by "revLoaderStacks()" both lists have
their use cases... but
the
I like using SubStacks because I only need to open one file to get everything
related to a project. Some people don't like using them because there are
certain things that happen that you wouldn't expect. For instance, any
preOpenStack, openStack, suspendStack, resumeStack etc. messages generate
Should, of course, be:
on mouseUp
answer "Sub" && random(99)
-- pass mouseUp
end mouseUp
I really, really do not like the use-list.
Craig
-Original Message-
From: dunbarx--- via use-livecode
To: use-livecode
Cc: dunbarx
Sent: Wed, Sep 25, 2019 3:45 pm
Subject:
Mark, you can easily use the send command for this. There is also the dispatch
command. The call would go directly to the object, bypassing any hierarchy.
Thus you can have the same-named handlers is other stacks without a conflict.
Sometimes it is a good thing to have a same-named handler in va
Hi.
Substacks are below (Hi, Jacque) the mainStack which own them in the message
hierarchy. Try this:
Make a new stack, name it "Main1". Make a sub stack of that stack, and name
it "Sub1". Put this into the script of the main stack:
on mouseUp
answer "Main" && random(99)
end mouseUp
Now put t
Do you ever have to call a substack from a main stack? If you do, do you have
to preface the handler with a substack reference or does LC know where to look?
Can you have 2 handlers by the same name in different sub stacks? How about in
the main stack and a substack (that would really get confus
On 9/25/19 7:43 AM, Sannyasin Brahmanathaswami via use-livecode wrote:
Related:
if you have this in the message box.
put the openstacks
you only get the
1. presently open binary stacks
2. any script only stack that you explicitly have open in the IDE
Some more options:
put revLo
There's "the stacksInUse" for those.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On September 25, 2019 9:45:22 AM Sannyasin Brahmanathaswami via
use-livecode wrote:
Related:
if you have this in the message box.
put the openstack
Related:
if you have this in the message box.
put the openstacks
you only get the
1. presently open binary stacks
2. any script only stack that you explicitly have open in the IDE
But, can you we a list of all stacks available to the message path "right now"
We can query the stack file
Hi.
You probably mean script-only stacks.
Substacks are just stacks, but they live in the same file as the mainStack. It
helps with organization, and when you save one, you save them all. You can only
have one mainStack, but as many subStacks as you like.
For me, I have projects that use substack
12 matches
Mail list logo