set theList to {}
...
repeat with i from 1 to length of theList
display dialog (text item i of theList)
end repeat
set theList to {}
...
repeat with i from 1 to length of theList
display dialog (text item i of theList)
end repeat