Here's a recipe. Create a couple of fields on a card. Open the inspector for one of them and set the name to empty - when you tab out, it will have a name in the form "field id xxxx", which is LC's way of indicating that the name is blank. Leave the name for the other field as "Field"
Group the fields. The group will be created with an empty name so open its inspector and give it a real name. Select the field with a the name "Field" and in the message box "put the long name of selobj()" you'll see it contains the group name. Select the field that has the empty name and do the same thing in the message box. The long name will contain the ID of the group, not the name. Pete lcSQL Software <http://www.lcsql.com> On Tue, Jan 15, 2013 at 12:15 PM, kee nethery <k...@kagi.com> wrote: > Can you give examples? > Kee > > > > On Jan 15, 2013, at 12:10 PM, Peter Haworth <p...@lcsql.com> 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