Is Control a DataGrid

Phil Davis revdev at pdslabs.net
Thu Dec 22 01:49:14 EST 2011


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, dunbarx at aol.com wrote:
>> Perhaps the "focusedObject"?
>>
>>
>>
>> -----Original Message-----
>> From: Todd Geist<todd at geistinteractive.com>
>> To: How to use LiveCode<use-livecode at 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




More information about the use-livecode mailing list