Yep. I have a big pool of data from a database that is formatted to
fit nicely in a datagrid. When you click on a row in the datagrid it
clones a stack I have and sets the row data as a custom property in
the cloned stack. And when I looked at my code for doing this, I
realized I must have already known this because destroyStack was
already being set.

On Thu, Dec 6, 2012 at 7:02 PM, Monte Goulding
<mo...@sweattechnologies.com> wrote:
> Like Robert said you need to set the destroyStack. Actually the design you 
> have above isn't brilliant for maintenance. Stacks are great containers for 
> structured data (particularly if it's not a heap of data in which case I'd 
> use a sqlite db file) but it's much better design to have an invisible stack 
> file with no controls and all the data in custom properties and then a 
> template document viewer that you clone if your app can have multiple 
> documents open. Otherwise version 2 of your app comes out and you need to 
> write routines to move data from version 1 of your document file to version 
> 2. Got caught by that one on a couple of my first LC apps...



-- 
Regards,

Andrew Kluthe
and...@ctech.me

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to