Script Placement

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Script Placement

Post by lohill » Thu Feb 11, 2010 12:22 am

My project consists of a main stack and several sub-stacks. If I have a function that needs to be accessed from multiple sub-tacks, where should it be placed so that it can exist in one place and yet be accessed from many?

Thanks,
Larry

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Script Placement

Post by Klaus » Thu Feb 11, 2010 9:26 am

Hi Larry,

all handlers and functions in the script of the mainstack can be accessed by all substacks.


Best

Klaus

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Script Placement

Post by lohill » Thu Feb 11, 2010 6:14 pm

Thanks Klaus,
all handlers and functions in the script of the mainstack can be accessed by all substacks.
While I was waiting for a reply, I tried putting my function in the main stack and it worked just fine. I should have tried that before I asked my question.

Regards,
Larry

Post Reply