Identifying DataGrids

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
lohill
Posts: 745
Joined: Tue Dec 08, 2009 6:37 pm
Location: San Diego, CA USA

Identifying DataGrids

Post by lohill » Wed Aug 14, 2019 3:22 pm

Is there a function or a script that can look at all the controls on a card and identity the ones that are datagrids? I would like something that would return the just the names of any datagrids present.

Thanks,
Larry

Klaus
Posts: 11062
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Identifying DataGrids

Post by Klaus » Wed Aug 14, 2019 3:31 pm

Hi Larry,

check this custom property set entry of a group:

Code: Select all

...
if the dgProps["control type"] of grp "xyz" = "Data Grid" then
  answer "You guess..."
end if
...
Best

Klaus

lohill
Posts: 745
Joined: Tue Dec 08, 2009 6:37 pm
Location: San Diego, CA USA

Re: Identifying DataGrids

Post by lohill » Wed Aug 14, 2019 3:50 pm

Thanks Klaus,

You came to the rescue once again. I spliced that into the code I was working on and it did the job.

Larry

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”