16
QB64 Discussion / Re: Going a little mad trying to figure out a problem with $Debug
« on: September 30, 2021, 07:54:03 pm »
!!! I found it !!!!
So the problem is that I have a number of variables for which I perform a ReDim but I never have an original DIM statement.
In my code, this works just fine, but apparently Debug does not like this.
I simply placed a "Dim PartitionSize(0) as String" near the start of my code with all the other DIM statements and the problem is solved.
The problem is that I think I do this with a bunch of variables so I need to look at every single ReDim in my 13,000 lines.
So, the logical question: Should what I am doing (ReDim without a preceeding Dim) ne valid or not?
So the problem is that I have a number of variables for which I perform a ReDim but I never have an original DIM statement.
In my code, this works just fine, but apparently Debug does not like this.
I simply placed a "Dim PartitionSize(0) as String" near the start of my code with all the other DIM statements and the problem is solved.
The problem is that I think I do this with a bunch of variables so I need to look at every single ReDim in my 13,000 lines.
So, the logical question: Should what I am doing (ReDim without a preceeding Dim) ne valid or not?