I have a very simple bit of code which isn't doing what it should and I'm most perplexed.
The code below has all be cut and pasted directly from a subroutine. It should dim a set of arrays (four string, one integer) and then redim them to fix their required sizes. All very simple.
dim control_temp(-1),control_temp2(-1), control_temp3(-1),control_temp4(-1) As String
dim deleteme(-1) as integer
redim control_temp(max_years)
redim control_temp2(max_years)
redim control_temp4(max_thresholds-1)
redim deleteme(max_years)
However, when I debug the programme, it seems that whilst the integer array is sized appropriately, the string arrays are not. Instead
I get a report which says (when max_years=70 and (max_thresholds-1)=40)
Quote:
control_temp String(60)
control_temp2 String(60)
control_temp3 String(40)
control_temp4 String(40)
deleteme Int32(70)
This all makes no sense to me. It's getting late and I'll look again tomorrow, but any ideas very welcome