repeat for and scope, nesting

john at debraneys.com john at debraneys.com
Sun Nov 19 15:42:44 CST 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

Regards

John T

>-----Original Message-----
>From: Mikey [mailto:mikeythek at gmail.com]
>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 lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list