How do I scan all the objects on a card?
Monte Goulding
monte at sweattechnologies.com
Mon Feb 10 19:56:01 EST 2003
Try
repeat with X=1 to the number of controls of this cd
-- why not use the GM to save the hassle?
end repeat
Monte
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Graham Samuel
> Sent: Tuesday, 11 February 2003 11:06 AM
> To: Revolution user discussion
> Subject: How do I scan all the objects on a card?
>
>
> In an attempt to do a kind of private Geometry Manager job so as to
> react to varying screen sizes, I want to scan every object on a
> particular card and do some processing on each one. This will be in a
> preOpenCard handler. The objects are graphics, images, buttons,
> groups. It looks as if the Revolution Development Environment does
> this but I can't see how. When I write for example
>
> repeat for each control sclTheControl of this card
> send "scpPlaceObject" to sclTheControl
> end repeat
>
> I get a compile error for the first line of the repeat statement. I
> guess this is just my ignorance of Transcript, or maybe it could be
> more fundamental - can anyone point me in the right direction?
>
> TIA
>
> Graham
> who one day hopes to answer other people's questions!
>
> --
> -------------------------------------------------------------------
> Graham Samuel / The Living Fossil Co. / UK & France
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list