Well, ok, let's suppose I have a structure like this (I have many, in fact)
Is there any way I can do something like this:

Code:
Function SizeOf(structure As Object)
    ' For Each field in structure
    '    calc size
    ' Next
    ' return size
End Function