Best Practice for Library Stacks
Ender Nafi Elekcioglu
endernafi at keehuna.com
Thu Feb 13 06:47:29 EST 2014
Mark, thanks for your quick reply.
I have another question, if you don’t mind.
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’s activated by
_repeat with x=1 to the number of buttons of card “libraryCode”
__insert the script of button x of card “libraryCode” into back
_end repeat
Thanks,
~ Ender
From: Mark Schonewille Mark Schonewille
Reply: Mark Schonewille m.schonewille at economy-x-talk.com
Date: February 13, 2014 at 13:19:32
To: How to use LiveCode use-livecode at 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 and use backscripts and frontscripts.
--
Best regards,
Mark Schonewille
More information about the use-livecode
mailing list