I have an array of type record and was wondering how i insert and item into it. My book doesnt have notation for how to do it.
Printable View
I have an array of type record and was wondering how i insert and item into it. My book doesnt have notation for how to do it.
VB Code:
Private Sub Sample() Dim recArray() as Record Dim NewRec as Record 'assume recArray is filled here 'assume newRec is filled here 'now lets redim the array Redim Preserve recArray(Ubound(recArray) +1) ' add one new record recArray(Ubound(recArray)) = newRec End Sub