There are two statements that simplify working with arrays: ReDim
and Erase
.
If the variable being referenced in either statement is a property, the property must be read-write or write-only, otherwise there is an error. If the variable is a read-only data member, the assignment must take place in a constructor appropriate for the type of the data member (that is, shared or not shared), otherwise there is an error.