Storing a control in a custom property

Mike Bonner bonnmike at gmail.com
Tue Apr 30 09:25:41 EDT 2013


Can't do it with a stack that is not its own mainstack so you have to make
sure any stacks you store this way are set to point to themselves, but I
don't see why you couldn't do it.  Copy the stack to clipboard (after
making sure it is not a sub) pop it out of the clipboard data, encrypt it
and store it.  To use, decrypt, pop it in to the clipboarddata array and
"paste."

Think I recall that stacks go in as "objects" too.  Can't do it with
multiple selected objects, but can put multiple objects into a group and
then store the single group. (there is probably a way to do it with
multiple objects but I haven't messed with it enough to know how to
accomplish it yet.)

On Tue, Apr 30, 2013 at 7:14 AM, Dr. Hawkins <dochawk at gmail.com> wrote:

> On Mon, Apr 29, 2013 at 5:52 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> > I was doing this with whole stacks and it works fine.  To restore the
> > object, put the cWhereIStoredIt into the clipboarddata["objects"] and
> then
> > paste it.  (didn't check dictionary so not positive if objects is
> correct)
>
> Hmm.  Could this then be used with "encrypt with RSA" to supply
> additional substacks to a standalone?  (I have something like 220
> districts with different supplemental forms to file . . .)
>
>
> --
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list