Strange contents of long name

Robert Sneidar slylabs13 at me.com
Tue Jan 15 15:37:43 EST 2013


You probably have a good case. But as someone once pointed out, the situation is averted by always naming your objects when you create them. 

Bob


On Jan 15, 2013, at 12:10 PM, Peter Haworth wrote:

> I think this has been discussed before but it appears that the long name of
> an object sometimes includes IDs rather than names.  Specifically, if a
> control's name is empty, it's long name will use IDs rather than names for
> all the objects in the control's owner hierarchy even if the owners have
> non-blank names.
> 
> This seems wrong to me.  Obviously, it can't use the control's name but
> that's no reason to not use the names of its owners.
> 
> I have a handler that is checking for specific name strings in a control's
> long name which will not work because of the above.  It seems my only
> alternative is to go chasing up the owner hierarchy to check for the
> string.  I don't know for sure but it seems like that would take a lot
> longer than parsing the long name.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> 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