VB Code:
  1. Dim varPIEQTY()
  2. Dim varpiei As Integer
  3.  
  4. For varpiei = 0 To 100
  5.     varPIEQTY(varpiei) = 0
  6. Next varpiei

subscript out of range

on
"varPIEQTY(varpiei) = 0"

ideas?

i haven't worked too much with arrays, but im trying to assign the array varPIEQTY(0) all the way to varPIEQTY(100) all = 0

this because i'll be filling in randoms parts in the array, and it seems if i haven't declared varPIEQTY(40) = 0 and i don't have a varPIEQTY(0), i get an errror...