D
deltaquattro
Hi all,
following Chip's suggestion to convert all my UDT to classes, I got
into a stumbling block: how to deal with a dynamic array property?
Suppose I have
Private pYValues() As Double
The Property Get should be trivial:
Public Property Get YValues() As Double()
YValues = pYValues
End Property
But how about the Property Let? I should handle the case of
unallocated and allocated array, but I cannot test allocation of a
dynamic array with Is Nothing. How can I get out of this? Thanks,
Best Regards
deltaquattro (Sergio Rossi)
following Chip's suggestion to convert all my UDT to classes, I got
into a stumbling block: how to deal with a dynamic array property?
Suppose I have
Private pYValues() As Double
The Property Get should be trivial:
Public Property Get YValues() As Double()
YValues = pYValues
End Property
But how about the Property Let? I should handle the case of
unallocated and allocated array, but I cannot test allocation of a
dynamic array with Is Nothing. How can I get out of this? Thanks,
Best Regards
deltaquattro (Sergio Rossi)