repeat for each....
Geoff Canyon
gcanyon at inspiredlogic.com
Tue Aug 26 02:18:37 EDT 2003
On Monday, August 25, 2003, at 05:45 AM, Mark Smith wrote:
> on tryLoopWith
> put "a,b,c,d,e,f" into charList
> repeat with n = 1 to the number of items in charList
> put item n of charList into line n of newCharList
> end repeat
> put newCharList && "with"
> end tryLoopWith
Others have answered the "repeat for each" question, but I can't
resist: this will also do the trick:
on tryLoopWith
put "a,b,c,d,e,f" into charList
put charList into newCharList
replace "," with cr in newCharList
put newCharList && "with"
end tryLoopWith
regards,
Geoff Canyon
gcanyon at inspiredlogic.com
More information about the use-livecode
mailing list