Missing properties

Mike Bonner bonnmike at gmail.com
Sat Dec 6 23:16:38 EST 2014


Seems like "this card" would be useful, or, you could just get the long
name of the object which contains a small to big list of owning objects
starting with the object itself.

On Sat, Dec 6, 2014 at 6:03 PM, Peter Haworth <pete at lcsql.com> wrote:

> Every now and again, I wonder why certain properties are not available in
> LC.  The ones that puzzles me the most are the owning card and owning stack
> of an object.
>
> Maybe it's just the kind of tools I write but I frequently need to get that
> information.
>
> I have written a couple of handlers to get that information but it just
> seems like there should be a property that does it for you, maybe
> "ownerStack" and "ownerCard".
>
> I've tried a couple of different ways of getting that information and
> curious how other people do it.  I'm sure there are a lot of people who
> have written the same handlers!
>
> I have a recursive function that traverses up the chain of owner properties
> until it gets to a card or stack, and another one that parses the long name
> of a control to get the information.  I think I prefer the recursive
> function
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> 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