G
gti_jobert
Hi all,
I populate an array with data like so;
Code:
--------------------
Private Sub cmdMCDT_Click()
Dim i%
Static Counter As Long
Counter = Counter + 1
ReDim Preserve ary(1 To 3, 1 To 3, 1 To Counter)
For i = 1 To 3
ary(1, i, Counter) = MachineNumber
ary(2, i, Counter) = Controls("lblDTCode" & i).Caption
ary(3, i, Counter) = Controls("lblDTDuration" & i).Caption
Next i
End Sub
--------------------
The problem is that I want to be able to delete the last entry (or how
ever many entries) from the array and then overwrite the array with a
new set of data.
Anyone know how I would go about doing this? All help appreciated!
I populate an array with data like so;
Code:
--------------------
Private Sub cmdMCDT_Click()
Dim i%
Static Counter As Long
Counter = Counter + 1
ReDim Preserve ary(1 To 3, 1 To 3, 1 To Counter)
For i = 1 To 3
ary(1, i, Counter) = MachineNumber
ary(2, i, Counter) = Controls("lblDTCode" & i).Caption
ary(3, i, Counter) = Controls("lblDTDuration" & i).Caption
Next i
End Sub
--------------------
The problem is that I want to be able to delete the last entry (or how
ever many entries) from the array and then overwrite the array with a
new set of data.
Anyone know how I would go about doing this? All help appreciated!