P.Weijtenburg #1 ...if the variables are only required *inside* the for loop, then declare it only inside the loop. The problem with that, though, is it will reset the variable each time the loop is ran. try this, works fine:For Local x:Int = 0 To 10 Print x Next