To empty the array use x = Nothing. So before the ReDim-statement do...

…
       x = Nothing
       ReDim x(1) As MyType 
…

I think you stumbled upon a bug since your using Option Compatible it should
have the same behavior as VBA. In VBA both ReDim statements yields an error.
“ReDim x(1) As MyType” because it has already been dimensioned and ReDim y
As MyType  because it is not a dynamic Array.

--
View this message in context: 
http://nabble.documentfoundation.org/ReDim-of-a-variable-of-a-custom-type-tp3265370p3267605.html
Sent from the Users mailing list archive at Nabble.com.

-- 
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to