Page 1 of 1

Identifying DataGrids

Posted: Wed Aug 14, 2019 3:22 pm
by lohill
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

Re: Identifying DataGrids

Posted: Wed Aug 14, 2019 3:31 pm
by Klaus
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

Re: Identifying DataGrids

Posted: Wed Aug 14, 2019 3:50 pm
by lohill
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