Number of Controls - Application Browser vs. Script

zryip theSlug zryip.theslug at
Wed Nov 16 17:03:47 EST 2011

On Wed, Nov 16, 2011 at 9:14 PM, Glen Bojsza <gbojsza at> wrote:
> I have a stack with a single card and several objects that I have placed on
> it ... including a datagrid.
> In the application browser it shows 58 controls for the card (all the ones
> I expected).
> From script
> put the number of controls of card 1 of this stack
> I get 202 controls (which I would guess has to do with the datagrid).
> Is it possible via script to get the same controls that the Application
> browser reports?

You can count the number of controls in the card,
then subtract to this number, the number of controls inside the datagrid group:

put the number of controls of cd 1 - the number of controls of group

Best regards,
-Zryip TheSlug- wish you the best! 8)

More information about the use-livecode mailing list