Hello Ladies and Gentlemen, please give assistance in the following. I have a Class Module, it has some properties (and declared internal variables, that correspond to these properties). One of these internal variables is an array:
[VBA]Dim A#()[/VBA]
I want to refer it from a property, as I do with a usual variable:
[VBA]Property Get X() as Double()
X = A
End Property
Property Let X(newX() as Double)
A = newX
End Property
[/VBA]
It doesn?t work this way. It says ?can?t assign to array? when I try to either read the property or write it. Of course, I can read and write them element-by-element, passing the item number as a parameter, and looping through property assignment inside the program code. But I want to make it a nicer way, passing array to property and returning it from property.