Why I cannot REDIM?
Posted: Mon Apr 26, 2010 6:38 am
Please help. I do not understand why I cannot REDIM my array
Error log is :
Code: Select all
Dim GV.l(1,2)
GV(0,0) = 100
GV(0,1) = 200
GV(1,0) = 300
GV(1,1) = 400
ReDim GV(2,2) ; <------------------ ERROR
GV(2,0) = 1100
GV(2,1) = 1200
For Count = 0 To ArraySize(GV())
Debug Str(GV(Count,0))+","+Str(GV(Count,1))
Next
[13:35:23] Waiting for executable to start...
[13:35:23] Executable type: Windows - x86 (32bit)
[13:35:23] Executable started.
[13:35:23] The Program execution has finished.
[13:36:59] Waiting for executable to start...
[13:36:59] Executable type: Windows - x86 (32bit)
[13:36:59] Executable started.
[13:36:59] [ERROR] test.pbi (Line: 6)
[13:36:59] [ERROR] Only the last dimension of an array can be changed with ReDim.
[13:37:03] The Program was killed.