repeat for and scope, nesting

john at john at
Sun Nov 19 16:42:44 EST 2006

Hi Mikey,

I would approach this by using "repeat with"

repeat with x = 1 to the number of chars of alphabet
 repeat with y = 1 to the number of chars of upperCaseLetters
 do stuff here
 end repeat
end repeat


John T

>-----Original Message-----
>From: Mikey [mailto:mikeythek at]
>Sent: Sunday, November 19, 2006 02:14 PM
>To: 'How to use Revolution'
>Subject: repeat for and scope, nesting
>No, I have not played with this, but the manual does not mention anything so...
>Can you nest "repeat for" where the property is the same?
>For example, if I have a container "alphabet" and another
>"uppercaseLetters", can I
>repeat for each character of alphabet
>repeat for each character of uppercaseLetters?
>The only way this would work would be if RR recognizes the scope of
>thisChar to be local to each loop, which in many languages is
>expected, but in many more is not...
>use-revolution mailing list
>use-revolution at
>Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list