Is Control a DataGrid
pete at mollysrevenge.com
Thu Dec 22 15:38:38 EST 2011
If your code might go out into the wild, I think the dgProps["control
type"] property I mentioned might be slightly safer than using the
dgcontrol property, just because it's highly unlikely anyone would have a
dgProps custom property set outside of a datagrid whereas it's not
inconceivable that might have dgcontrol property in the default custom keys
On Thu, Dec 22, 2011 at 9:44 AM, Todd Geist <todd at geistinteractive.com>wrote:
> 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.
> > Bob
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
Molly's Revenge <http://www.mollysrevenge.com>
More information about the Use-livecode