ReDim driving me crazy again…

Johnny Rosenberg <[email protected]> Wed, 17 Aug 2011 11:45:12 +0200
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <CADo7T4eKAKLZ-5XFaQfGp9TKgx3LMAuahC5=_8vQpGP+Tr70cg@mail.gmail.com>
I edited a lot of code yesterday, one of the rows I did NOT edit was
this one, which occurs at the top of a subroutine:

ReDim NDice(1 To 6) As Integer

It is defined in another module as:
Public NDice(1 To 6) As Integer


The error message I get is (translated from Swedish):
=E2=80=9DBASIC syntax error:
The NDice variable is already defined.=E2=80=9D

Yes, I know it is, that's one of the points by using ReDim, isn't it?

Before doing some heavy editing there was no complaints on this line
at all, and as I said, this is NOT one of the many lines I changed.

So obviously some of my other edits caused this, but where to start
looking? What can I possible have done to cause this?

I just hate when these things happen, when there is an error message
telling me that I can't do something that I should be able to do. Like
if I got an error message for the line =E2=80=9DIf a=3Db Then=E2=80=9D, and=
 the error
message says: =E2=80=9DBASIC syntax error: a and b are already compared=E2=
=80=9D=E2=80=A6
--=20
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help