What do you mean by "initialize"? Are you talking about doing:
"Dim $i" at the top of the script