Seeking recommendations / suggestions for use of library stacks.
ali.lloyd at livecode.com
Mon May 15 10:40:19 CEST 2017
One simple way to make this slightly nicer would be to make sure all your
initialisation happens in a separate handler eg (doLibraryInitialization),
and use your script local lock in the libraryStack handler
> local sIHaveBeenInitialized
> on librarystack
> if sIHaveBeenInitialized is empty then
> put the millisecs into sIHaveBeenInitialized
> end if
> end librarystack
Then you don't need a separate library_reset handler, just call
doLibraryInitialization from the message box. Of course you still might
want to flip it from public to private once you deploy.
More information about the use-livecode