long FieldName to owning stackName

Mark Smith lists at futilism.com
Tue Aug 25 03:58:29 EDT 2009


Scott, what's wrong with chunking? However, to get a list:

function objectOwner objectId
    put the owner of objectId into tOwner
    if tOwner is not empty then
       put tOwner & cr & objectOwner(tOwner) after tList
    end if
    return tList
end objectOwner

so
put objectOwner(the long id of fld 1)
will show something like:

group id 1008
card id 1002
stack "Untitled 1"

On 25 Aug 2009, at 08:46, Scott Morrow wrote:

> I'm guessing that there is an elegant way of deriving the name of  
> the owning stack when given the long name of a field.   
> Unfortunately my current strategy feels a chunking hack.  :  )  Ideas?
>
> Scott Morrow
>
> Elementary Software
> (Now with 20% less chalk dust!)
> web       http://elementarysoftware.com/
> email     scott at elementarysoftware.com
> _______________________________________________
> 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