the Visible Variable
simplsol at aol.com
simplsol at aol.com
Sat Apr 15 11:49:51 EDT 2006
There is one limit to fields to be aware of (admittedly this is seldom
a problem):
Fields can only have 65536 characters per line.
Apparently Custom Properties do not have this limit.
Paul Looney
-----Original Message-----
From: Sarah Reichelt <sarah.reichelt at gmail.com>
To: How to use Revolution <use-revolution at lists.runrev.com>
Sent: Sat, 15 Apr 2006 07:23:49 +1000
Subject: Re: the Visible Variable
On 4/15/06, Josh Mellicker <josh at dvcreators.net> wrote:
> Instead of global variables or custom properties, I've been using a
> data stack to hold data in fields.
>
> Crazy? Been there done that? Good idea? Comments?
>
Yes, I do this all the time. There is no need to "go to" or to "show"
the data stack, so the speed difference between using fields & using
custom properties effectively disappears. However it makes debugging
very easy as you can inspect & edit your data directly if needed.
Backing up the data is also made simple, since you just save a copy of
the stack.
I make sure that each data field, check box,menu button or radio
button has it's own unique name, then I collate all these names & the
name of their card into a custom property of the data stack. I have
generalised setData, getData handlers & functions that look at this
list, find the appropriate data object on it's card, and either change
or return it's value.
This is working really well for me in several big projects.
HTH,
Sarah
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list