2011/8/19 Niklas Johansson <[email protected]>:
> 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.

Okay, thanks everyone for your input. It seems like I have
misunderstood the concept a little bit. I'll take a closer look at it
when I get home after the weekend.

J.R.

-- 
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