I am trying to determine the amount of memory used by an array. Specifically if it's an array of user defined types containing strings. Using this code as an example...
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
Code:
Option Explicit
Private Type Person
Id As Long
EyeColor As String
ShoeSize As Single
Name As String
End Type
Private Sub Command1_Click()
Dim People() As Person
ReDim People(2)
People(0).Id = 1
People(0).Name = "Some Really long name"
People(1).Id = 2
People(1).Name = "Jo"
People(2).Id = 3
People(2).EyeColor = "Blue"
People(2).ShoeSize = 9.5
' How do I determine the amount of memory used
' by the array?
End Sub
-George
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom