Re: Best Practice for Library Stacks - Found word(s) check out in the Text body

2014-02-17 Thread Bob Sneidar
What you are calling Scripts are actually Handlers. A Script is the entire chunk of code, containing 0 or more commands and/or functions, which belongs to an object. A handler is everything between and including an on/command/function statement and it’s corresponding end statement. In the past

Re: Best Practice for Library Stacks

2014-02-17 Thread enderNafi
1 • LiveCode 6.5.1 & xCode 5.0.1 -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Best-Practice-for-Library-Stacks-tp4675854p4676032.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-li

Re: Best Practice for Library Stacks - Found word(s) list error in the Text body

2014-02-17 Thread Bob Sneidar
Not the way you are doing it. Only the STACK script is in the message path. Not every script of every object IN the stack! That being said, you could certainly insert the script of every card of the library stack, but that might be messy. An alternative might be to put all the handlers in the

Re: Best Practice for Library Stacks

2014-02-13 Thread Roger Eller
Wasn't the ten lines of 'do' commands a very old demo version thing?... Designed to keep testers from do-ing too much without buying the product? And wasn't it removed long ago? Questions, questions, questions... ~Roger On Feb 13, 2014 12:11 PM, "Richard Gaskin" wrote: > Earthednet-wp wrote: >

Re: Best Practice for Library Stacks

2014-02-13 Thread Richard Gaskin
Earthednet-wp wrote: > Richard, > My question was probably too elementary, but what I was really asking > is: > Do all of the handlers in a single button script count as a single > script, or is a single handler in the button script counted as a > script, for purposes of scriptLimits. There was

Re: Best Practice for Library Stacks

2014-02-13 Thread Earthednet-wp
Richard, My question was probably too elementary, but what I was really asking is: Do all of the handlers in a single button script count as a single script, or is a single handler in the button script counted as a script, for purposes of scriptLimits. If only 10 front scripts were allowed, the

Re: Best Practice for Library Stacks

2014-02-13 Thread Mark Wieder
Richard- Thursday, February 13, 2014, 7:46:16 AM, you wrote: > There used to be limits; it remains to be seen if there still are, or if > the Dictionary entry for scriptLimits just needs to be updated. Last time I looked in the code, the script limits were commented out. -- -Mark Wieder ahsof

Re: Best Practice for Library Stacks

2014-02-13 Thread Ender Nafi Elekcioglu
I couldn’t decide which line to quote from Richard’s posts; You know, because of the 15kb limit of list :) In short, I’ve learned much. For my situation, using library stacks is less convenient. And the possibility of hooking chained behaviors to the backscripts seems very promising. I already s

Re: Best Practice for Library Stacks

2014-02-13 Thread Richard Gaskin
Earthednet-wp wrote: > I like the idea of putting libraries into buttons, then copying > them into the front script at startup. When you say there is a > limit of some number of scripts, what counts for a "script"? Is > a single script counted as all the handlers contained within a > single butto

Re: Best Practice for Library Stacks

2014-02-13 Thread Earthednet-wp
I also am concerned with the organization of large script libraries. I like the idea of putting libraries into buttons, then copying them into the front script at startup. When you say there is a limit of some number of scripts, what counts for a "script"? Is a single script counted as all the

Re: Best Practice for Library Stacks

2014-02-13 Thread Richard Gaskin
Ender Nafi wrote: Is there any difference, especially performance-wise, between these two approaches: 1. Library code is in the library stack’s script and it’s activated by _start using stack “libraryCode” 2. Library code is distributed to different buttons of a card of the main stack and it

Re: Best Practice for Library Stacks

2014-02-13 Thread Richard Gaskin
Paul Dupuis wrote: You can have more Library stacks loaded (via start using) than you can insert back scripts or front scripts. The numbers used to be 50 library stacks and 15 front and 15 back scripts. I am not sure if that has changed with recent releases. It seems that it has. I'd been mea

Re: Best Practice for Library Stacks

2014-02-13 Thread Paul Dupuis
You can have more Library stacks loaded (via start using) than you can insert back scripts or front scripts. The numbers used to be 50 library stacks and 15 front and 15 back scripts. I am not sure if that has changed with recent releases. This may or may not make a difference for you depending upo

Re: Best Practice for Library Stacks

2014-02-13 Thread Ender Nafi Elekcioglu
m.schonewi...@economy-x-talk.com Date: February 13, 2014 at 13:19:32 To: How to use LiveCode use-livecode@lists.runrev.com Subject:  Re: Best Practice for Library Stacks Hi Ender, Stacks in use receive messages at stack level, not at card level. Use a button for each part of your library

Re: Best Practice for Library Stacks

2014-02-13 Thread Mark Schonewille
Hi Ender, Stacks in use receive messages at stack level, not at card level. Use a button for each part of your library and use backscripts and frontscripts. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://

Best Practice for Library Stacks

2014-02-13 Thread Ender Nafi Elekcioglu
Hello, I have a library stack which consists all my common functions and commands. Calculations, text manipulation, getting device info, update procedures, etc. Stack’s script is close 5000+ line of code. I wanted to organize it and put related handlers into the script of respective cards. But