Is Control a DataGrid

Todd Geist todd at
Thu Dec 22 12:44:56 EST 2011

In this case I am making a Palette that pops up when groups are selected.
 I need to rule out groups that are inappropriate for the palette. The data
grid is one such group.  Since this code may make it into the wild someday
I can't rely on other people naming conventions to make this work.

While I applaud naming conventions for making things easier to read and
understand, I don't use them for logic. I think it introduces unnecessary
fragility, even if it is just for your own code.


On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar <bobs at> wrote:

> I name all my datagrids starting with "dg", as I name fields with "fld",
> labels with "lbl" buttons with "btn" etc. It's been discussed before, but a
> consistent naming convention comes in real handy at times, and makes
> sorting by kind in a list of objects possible.
> Bob

More information about the Use-livecode mailing list