Is Control a DataGrid
todd at geistinteractive.com
Thu Dec 22 11:44:56 CST 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 twft.com> 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.
More information about the use-livecode