I have a project that is going to get large. I want to have library stacks where I can put my code for general use by my project. How do I set up a stack that sits in the message path of all of my project stacks where I don't have to use "send" to invoke every handler that I want to call? A substack won't sit in the message path of other substacks, so that doesn't fit my need. I see Library stacks in other project, but can't find the recipe to attach them.
I've scoured the docs, probably missed it, but can't find the answer to what I think should be a very simple question.
How to make a custom code library-solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 38
- Joined: Tue Sep 20, 2011 5:01 pm
- Contact:
How to make a custom code library-solved
Last edited by waprothero on Sat Jul 20, 2013 5:08 pm, edited 1 time in total.
Bill Prothero
-
- VIP Livecode Opensource Backer
- Posts: 10044
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: How to make a custom code library
See "start using" in the Dictionary.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 38
- Joined: Tue Sep 20, 2011 5:01 pm
- Contact:
Re: How to make a custom code library
Richard: Problem solved.
I was using the message box to invoke the handler. It works when I invoke it on the card that holds the app.
I was using the message box to invoke the handler. It works when I invoke it on the card that holds the app.
Last edited by waprothero on Fri Jul 19, 2013 12:26 am, edited 2 times in total.
Bill Prothero
Re: How to make a custom code library
Hi waprothero,
I'am not sure what you mean about library.
You can use a stack to store handlers which you often need.
start using stack "MyLibrary" and all handlers of this stack will be available
Best
Jean-Marc
I'am not sure what you mean about library.
You can use a stack to store handlers which you often need.
start using stack "MyLibrary" and all handlers of this stack will be available
Best
Jean-Marc
https://alternatic.ch
-
- Posts: 38
- Joined: Tue Sep 20, 2011 5:01 pm
- Contact:
Re: How to make a custom code library
I just had a session with this, getting it to work. The problem I was having was when I tried to load a stack using the "open" command, I didn't realize that it required that I put the .livecode extension on the stack name. It would be nice if the docs had an example that showed that it required the actual full filename, path, and extension of the stack.
I got it working, finally.
I got it working, finally.
Bill Prothero