Where are the objects of a stack after 'start using'?
Richard Gaskin
ambassador at fourthworld.com
Sat Aug 23 14:48:10 EDT 2008
Graham Samuel wrote:
> I am trying to construct a library by writing stacks and
> inserting their scripts into the message path with 'start
> using'. So far, so good. Then I wanted to set a custom prop
> in a library stack, and RunRev silently rejected this, presumably
> because the stack although being used, wasn't in the 'stacks in
> use'. Confusing, isn't it?
This may be a case of "Check your premise". :) How do you know the stack
isn't in the "stacksinuse"? And how is it not there is "start using"
was successful?
Have you checked "the result" immediately after "start using"? You may
find your clue there.
> What if I want the objects in a library stack to be available to
> my application? How do I create a library of objects? I obviously
> don't understand how the whole 'start using' thing works.
For general info on libraries and related topics, this article may help:
Extending the Runtime Revolution Message Path
An introduction to using Libraries, FrontScripts, and BackScripts
in Runtime Revolution's Transcript Programming Language
<http://www.fourthworld.com/embassy/articles/revolution_message_path.html>
> Can I do 'start using' and afterwards actually go to or open my
> library stack so that its objects and properties become public
> property so to speak?
Yes, although it may not be necessary since the stack is already in
memory. My libROSE stack (Rev Open Source Editor) works that way,
setting properties on a template script editor stack even though it's
never actually opened.
Perhaps there's something in the code which refers to the stack in
question which may be off, or the stack isn't really in use as suggested
above.
--
Richard Gaskin
Managing Editor, revJournal
_______________________________________________________
Rev tips, tutorials and more: http://www.revJournal.com
More information about the use-livecode
mailing list