How do I get a list of all controls on a card?

Mark Schonewille europe at ehug.info
Mon Apr 10 21:08:31 EDT 2006


Hi Xavier,

Use these handlers as follows:

put the objects of this cd into myList
get the objectIDs of this cd

Put the handlers into the stack script of your mainstack or in a 
stack that is in use. Mind linewraps.


getProp objects
   repeat with x = 1 to number of controls of the target
     put the name of control x of the target & return after myList
   end repeat
   sort myList
   return myList
end objects

getProp objectIDs
   repeat with x = 1 to number of controls of the target
     put the id of control x of the target & return after myList
   end repeat
   sort myList
   return myList
end objectIDs


Best regards,

Mark


Xavier Bourque wrote:
> Hi,
> 
> My stack lets the user add and remove text fields and rectangles on a  card.
> 
> I want to gather a list of all the text fields and rectangles when  the 
> user is done adding/deleting them.
> 
> How do I get a list of all the controls on a card?
> 
> Thanks.
> 

-- 

Consultant and Software Engineer
mailto:m.schonewille at economy-x-talk.com
http://www.economy-x-talk.com

eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.




More information about the use-livecode mailing list