And if I was in control of that situation, I would do exactly that. However, this is in lcStackBrowser, a plugin to run on other peoples' computers so I have no control over how they create their controls.
Matter of fact, I don't always have control on my own machine - creating a datagrid results in numerous controls with blank names. Pete lcSQL Software <http://www.lcsql.com> On Tue, Jan 15, 2013 at 12:37 PM, Robert Sneidar <slylab...@me.com> wrote: > 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@lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode