Library Stacks - Scope Demonstration

Introduction.  This simple demonstration aims to show how a so called library stack may be made available to other project stacks.  There should be three stack files in the folder : MyLibraryStack.Livecode, ScopeTestAnotherStack, ScopeTestMain.livecode.  I recommend that Livecode is quit before the following demonstrations are conducted.

Demo’ 1.  

1) Load and run ScopeTestMain in the IDE.
2) Press the List Stacks in Use button and note that stack MyLibraryStack is not listed.
3) Try pressing any/all of the lower “call” buttons and note that the calls all generate an error.
4) Press button “Start Using MyLibrary”  - Result no error
5) Press button “Call MyLibraryStack” it should now respond
6) Press button “Call Sub Library A” it does not work
7) Press button “Start Using Lib’ Sub A” - Result no error
8) Press button “Call Sub Library A” this time it works
9) Press button “Call Sub Library B” - Result error message
10) Press button “Start Using Lib’ Sub B” - Result no error
11)  Press button “Call Sub Library B” - Success
12) Experiment with the Start, Stop using  and call buttons 

Quit Live code

13) Load and run ScopeTestAnotherStack in the IDE.
14) Repeat steps 2-11 with the result of errors as the stack does not know how to find  stack MyLibrary.
15) Reload ScoptTestMain
16) Repeat steps 2-11, now the engine knows where to find the handlers in MyLibrary