Just a basic array question that doesn't seem to work for me.
My code:

Dim tmp(1 To 1000) As Long
Car1End = timer
car1Lap = Val(txtCarLap1.Text)
txtCarLap1.Text = car1Lap + 1
tmp(car1Lap) = Car1End


What I'm trying to do is store each lap in a array, and then find the average. Car1End is a integer, and so is car1Lap. Now, I get a "Subscript out of range" error. Can YOU help?

Thanks.