I like dgProps["control type"] too. I was unaware of it.
Phil


On 12/22/11 12:38 PM, Pete wrote:
Hi Todd,
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
property set.
Pete

On Thu, Dec 22, 2011 at 9:44 AM, Todd Geist<t...@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.

Todd

On Thu, Dec 22, 2011 at 9:13 AM, Bob Sneidar<b...@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode




--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net


_______________________________________________
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