richrock316
Programmer
I am creating a dynamic array with this statement
ReDim zoomarray(1).varray(amount)
where amount might start at 160K.
I later come in and increment with
ReDim zoomarray(2).varray(amount)
and so on until i get to the 10th element of the array. "amount" will get steadily smaller as we progress in the array.
My problem is that it takes about 2/10th of a second to create the first element of the array "zoomarray(1)", but it can take 5 seconds to do any of the successive elements even though the amount of records gets smaller.
Here are the global variables
Public zoomarray(1 To 10) As zarray
Type zoom_info
buffer As String * 10
Range As String * 8
bearing As String * 8
peak As String * 9
bkgrd As String * 8
ecm As String * 8
brng_extnt As String * 8
rng_extnt As String * 7
log As String * 4
mti As String * 4
test_trgt As String * 5
trgt_gate As String * 5
rpc_gate As String * 5
rng_extd As String * 5
azm_extd As String * 5
fail_bit As String * 4
group_id As String * 7
blip_count As String * 6
fcolor As Integer
newRange As String * 8
newbearing As String * 8
End Type
Type zarray
varray() As zoom_info
End Type
ReDim zoomarray(1).varray(amount)
where amount might start at 160K.
I later come in and increment with
ReDim zoomarray(2).varray(amount)
and so on until i get to the 10th element of the array. "amount" will get steadily smaller as we progress in the array.
My problem is that it takes about 2/10th of a second to create the first element of the array "zoomarray(1)", but it can take 5 seconds to do any of the successive elements even though the amount of records gets smaller.
Here are the global variables
Public zoomarray(1 To 10) As zarray
Type zoom_info
buffer As String * 10
Range As String * 8
bearing As String * 8
peak As String * 9
bkgrd As String * 8
ecm As String * 8
brng_extnt As String * 8
rng_extnt As String * 7
log As String * 4
mti As String * 4
test_trgt As String * 5
trgt_gate As String * 5
rpc_gate As String * 5
rng_extd As String * 5
azm_extd As String * 5
fail_bit As String * 4
group_id As String * 7
blip_count As String * 6
fcolor As Integer
newRange As String * 8
newbearing As String * 8
End Type
Type zarray
varray() As zoom_info
End Type