I should have said a little more. From the DG API docs <http://lessons.runrev.com/s/lessons/m/datagrid/l/7344-Data-Grid-API>:
/dgControl/
- get the dgControl of the target
- Returns the long id of the data grid. Useful in row/column template behaviors when you need to get properties of the data grid.
Phil


On 12/21/11 10:45 PM, Phil Davis wrote:
Hi Todd,

This should work unless you use 'dgControl' as your own custom prop name anywhere:

if the dgControl of control x = empty then -- this is NOT a DG
    -- do stuff here
end if

Phil Davis


On 12/21/11 10:31 PM, dunb...@aol.com wrote:
Perhaps the "focusedObject"?



-----Original Message-----
From: Todd Geist<t...@geistinteractive.com>
To: How to use LiveCode<use-livecode@lists.runrev.com>
Sent: Wed, Dec 21, 2011 7:24 pm
Subject: Is Control a DataGrid


Hello,

When Looping through controls on a card, how does one determine if the
current control is a DataGrid?

Actually I want to know that it is NOT a DataGrid.

Thanks

Todd



--
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