How many objects (IDs) can be generated by script?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Re: How many objects (IDs) can be generated by script?

Post by jacque » Mon Nov 17, 2014 11:32 pm

What do you mean by "attach"? If you mean it's a substack, then it is part of the executable and can't be saved. If it is a loose file on disk that just happens to be in the same folder with the standalone, then it can be saved. I call these "document" stacks or "satellite" stacks because we don't have an official nomenclature; they're just stacks. But they aren't part of the stackfile.

A stackfile consists of one or more stacks in the same file on disk. A stackfile is always one mainstack and one or more substacks. When compiled, they all become the standalone (the "app".)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10324
Joined: Wed May 06, 2009 2:28 pm

Re: How many objects (IDs) can be generated by script?

Post by dunbarx » Mon Nov 17, 2014 11:48 pm

I will be much happier if it is just my names for things.

In the StandAlone Settings, one is able to add a stack file to a "main" file. That is what I do, add a working stack file to the splash stack file. And when I started this, way back, I always used substacks, and then always moved them to their own stack files, so that they could be saved. These are all effected in the settings. I called the "main" file the executable, and the added ones (or those moved to their own stack file) the "working" file(s).

Am I missing a concept, never mind misnaming objects?

Craig

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: How many objects (IDs) can be generated by script?

Post by [-hh] » Tue Nov 18, 2014 2:59 am

Dear 'jacque', dame of HC/MC/LC.

I was instructed by some other forum users and me to
thank you very much for all your help
with a virtual bunch of flowers on occasion of your crossing the 2000 posts line.
flowers2000.jpg
Jacque's bouquet "2000"
flowers2000.jpg (51.62 KiB) Viewed 3634 times
shiftLock happens

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

Re: How many objects (IDs) can be generated by script?

Post by jacque » Tue Nov 18, 2014 3:04 am

No, you're right. The stacks you add in the standalone builder are separate files and can be saved. My original comment concerned only the main stackfile that eventually becomes the app.

For the files you call working stacks, those will revert to their original IDs if not saved, but act as you'd expect if they are.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: How many objects (IDs) can be generated by script?

Post by jacque » Tue Nov 18, 2014 3:06 am

Hermann, thank you! To be honest, I didn't even notice my posting count. :-)

The flowers are lovely.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

Re: How many objects (IDs) can be generated by script?

Post by Havanna » Tue Nov 18, 2014 9:21 am

FourthWorld wrote:What issues have you encountered copying DataGrids? As long as you move the template substack along with it that's normally fine.
One copied datagrid working perfectly in the IDE, but not accepting formats (like set dgColumnWidth["..."] or set dgprops["text size"]) in a standalone for windows or android.
But I just copied the previously working datagrid from project browser into a new stack. I didn't explicitly copy the template substack - just never thought of checking, because in the IDE everything worked dandy, but obvieously the standalone couldn't connect.

Good to know though, much learning left to do.

Post Reply