Re: ReDim driving me crazy again…

Johnny Rosenberg <[email protected]> Thu, 18 Aug 2011 11:20:11 +0200
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <CADo7T4eOyc8aAmz-r33RuU-ZA9Tp6dsiFi_2keJ3-zWg48L18A@mail.gmail.com>
2011/8/18 Laurent Godard <[email protected]>:
> HI
>
> from my poor experience
> if I want to use redim, i have to define the array as dynamic
>
> may be try this
>
> public NDice() as integer
>
> sub main
> =C2=A0redim NDice(1 to 6)
>
> end sub
>
> Laurent
> --

That is probably a good idea in most cases, but it gives the same
error if the array is defined in another module (I just tried it in my
example).
I have worked around it now in my project (I found that I could just
move the initial definition to the same module where the ReDim
statement is, which works for this project but not in all cases), but
I still want to know if this is a bug or not, so I can report it if it
is.


Thanks for your input, you are the only one who replied, so I guess
most people hate me for all those annoying questions I posted
recently=E2=80=A6 ;D


Kind regards

Johnny Rosenberg
=E3=82=B8=E3=83=A7=E3=83=8B=E3=83=BC=E3=83=BB=E3=83=AD=E3=83=BC=E3=82=BC=E3=
=83=B3=E3=83=90=E3=83=BC=E3=82=B0
--=20
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help