Since the Erase method is used to erase an array, does it clean up properly if it is an array of objects? Or do I have to iterate through the array and destroy each object separately?
ex:
vb Code:
Option Explicit Private objMyObject() As MyObject Private Sub Form_Load() Dim i As Integer ReDim objMyObject(1 to 10) As MyObject For i = 1 To 10 Set objMyObject(i) = New MyObject Next i End Sub Private Sub Form_Unload() Erase objMyObject End Sub




Reply With Quote
