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!
I've gone thru the whole dictonary of transcript terms searching for something that would simply list all the controls present on a given card... to no avail.. any simple way of doing this ?
put the controls of card 1 into myObjects
repeat with x = 1 to the number of lines of my myObjects
set the someProp of (line x of myObjects) to someValue
end repeat
repeat with x= 1 to (the number of controls of this card)
put the long id of control x of this card into tCtlRef
set the iAmAControlOfThisCard of tCltRef to true
if word 1 of tCtlRef is "field" then set the fontsize of tCtlRef to 16
end repeat
(typed on the fly and untested... feel free to correct me)
Last edited by marielle on Sun Jan 14, 2007 3:30 pm, edited 1 time in total.
I like using a property: put the objects of this card, put the objectIDs of this card.
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,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode