Hi Craig. Thanks for the reply. 

One of the goals of any utility script I write is to make it usable in any 
circumstance. Using naming conventions violates this principle. However your 
first comment seems like it would work. There is only one control where the 
dgProp ["control type"] is "data grid" but not for the owner, and that is the 
datagrid itself. That might do the trick! I must have been in a coding fog not 
to think of that yesterday afternoon. It's been getting foggy of late. ;-)

Bob S


> On Jan 4, 2018, at 21:06 , dunbarx via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi.
> 
> Can you both check dgProp ["control type"] AND see if the owner of that
> control is a group where that property also exists?
> 
> Or, and I hesitate to mention it, why not just either name all your DG's a
> certain way, or set a custom property for each of them? After all, you had
> to have created them in the first place.
> 
> Perhaps this exercise comes after the fact?
> 
> Craig Newman  


_______________________________________________
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

Reply via email to