Location of a Function

Richard Gaskin ambassador at fourthworld.com
Tue Jul 17 17:51:14 EDT 2007


Ken Ray wrote:
> On Tue, 17 Jul 2007 16:30:33 -0400, Gregory Lypny wrote:
> 
>> Hello everyone,
>> 
>> I have a main stack with a number of stack files.  The main stack is 
>> loaded, and it automatically opens the others.
>> 
>> If I want a certain custom function to be accessible to all the 
>> stacks, where do I place it?  I put it in the stack script of the 
>> main stack, but when I call it from one of the other stacks, it isn't 
>> recognized.
> 
> Put it into a backscript or a library... personally for this kind of 
> stuff I'd probably recommend a backscript since it is easy to implement 
> (put the code you want shared into an object like a button, and then do:
> 
>   insert the script of btn "myButton" into back


For more information on using backScripts, frontScripts, and libraries:



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>


-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the Use-livecode mailing list