window management

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: window management

Post by adventuresofgreg » Wed Jul 24, 2013 2:32 pm

sturgis wrote:Running as in busy around town doing jobs and such. Came home, went comatose, better now!

After thinking on your solution, without actually having a concrete reason, I think i'd go another direction. Just a feeling of upcoming problems. As jacque mentioned, "me" might be helpful, or behaviors or.. many many options. Mind if I ask exactly what end result you're going for? If all cards must run exactly the same code and in relation to themselves, setting up 1 template card (or substack or whatever) should work fine if you can get your syntax and references straight. Then clone the card, name the card uniquely and turn it loose. You could even save a copy if your card to a property of the stack, then load it up and "paste" it (which gives you a card named "copy of card....." that you can rename.

Can you send post a sample of your old code that you are converting for multiple card/stack use?
the code is incredibly complex at this point - which is why doing the dynamic renaming of the variables, buttons, and field names was easiest. Your idea of cloning the card, and naming it uniquely won't work because of all the globals in the stack scripts. They globals are available to every clone of the stack running. References to the fields and buttons, etc would work because each stack would have it's own unique name (assuming that every time I refer to an object, I refer to (button "suchandsuch" on stack "myCLone"). But, I think the only way to ISSOLATE the globals used is to build nested arrays, and due to the complexity of my scripts, my script editing method was easier. Converting all globals to locals won't work either because it will require way too many specific changes in other places on the stack that assume that a global var is available.

However... al that just said.... I save a SA from community, and the cloning does NOT work! There must still be script limits in the Open Source version?? Does anyone know anything about this?

adventuresofgreg
Posts: 349
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Re: window management

Post by adventuresofgreg » Wed Jul 24, 2013 3:04 pm

adventuresofgreg wrote:
sturgis wrote: However... al that just said.... I save a SA from community, and the cloning does NOT work! There must still be script limits in the Open Source version?? Does anyone know anything about this?
CORRECTION: I'm sorry, but running the clone in the Community version Standalone DOES work. My earlier test issues were my fault.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7394
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: window management

Post by jacque » Wed Jul 24, 2013 7:42 pm

For future reference, community has no script limits. Commercial does.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply