Skip to content

Instantly share code, notes, and snippets.

@AndyPiddock
Last active August 28, 2018 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyPiddock/f20715c74a60a00f699bbee590f573f9 to your computer and use it in GitHub Desktop.
Save AndyPiddock/f20715c74a60a00f699bbee590f573f9 to your computer and use it in GitHub Desktop.
LiveCode: loads a library stack invisibly for use by a calling stack and makes it ready to use
--Loads a library stack invisibly for use by a calling stack and makes it ready to use
local tPath
lock screen
//loads the library from disk and inserts it as a library
set the itemDel to "/"
put the effective filename of stack "myMainStack" into tPath
put "MyLibraryStack.livecode" into item -1 of tPath
open invisible stack tPath
start using stack "MyLibraryStack"
set the defaultStack to "myMainStack"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment