Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTE 9: Subscript out of Range
#1
Public Sub CheckSprites()
Dim i As Long

i = 1

While FileExist(GFX_PATH & "sprites\" & i & GFX_EXT)
NumSprites = NumSprites + 1
i = i + 1
Wend

ReDim DDS_Sprite(1 To NumSprites)
ReDim DDSD_Sprite(1 To NumSprites)

ReDim SpriteTimer(1 To NumSprites)

End Sub

It highlights the part of the code thats red.

Any ideas on what to do to fix this error?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)