Get list of all objects on a card?

Stephen Barncard stephenREVOLUTION at barncard.com
Sun Mar 12 17:00:32 EST 2006


local tcontrolList
get the number of controls in <obj>
repeat with n = 1 to it
   put the long name of control n of <obj> & return after tcontrolList
end repeat



the long name is quite specific and has all the info you need.

this is not tested but you can get the idea. you can then filter the 
object types by what's in the first part of each line.


>Rev 2.6.1
>
>Greetings,
>
>I'm trying to figure out how to get a list of all objects on a card, 
>but have not been able to find anything in the docs related to this.
>
>I know how to get a list of cards in a stack with the "cardNames", 
>but see no equivalent for objects on the card.  :-(
>
>Does anyone know if there is a way accomplish this?
>
>Thanks,
>-Garrett
>

-- 
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



More information about the Use-livecode mailing list