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
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
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
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:
>
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
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
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
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
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
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
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
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
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
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
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://
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
16 matches
Mail list logo