Apache OpenOffice (AOO) Bugzilla – Issue 34270
DIm(cMAX) does not work if Const cMAX is placed in a different module ...
Last modified: 2017-05-20 11:29:19 UTC
Hi, place the line "Public Const cBUG = 1000" into a different basic module, and the example will fail while trying to Dim the array ... regards Oliver -- OPTION EXPLICIT ' Place this line into another module ' and the macro fails with error #382 ... Public Const cBUG = 1000 Sub TestConst On Local Error Goto ErrorHandler Const cMAX = 100 Dim x(cMAX) as Integer msgBox "cMAX is " & CStr(cMAX) & " " & CStr(uBound(x())) msgBox "cBUG is " & CStr(cBUG) ' will crash here ... Dim y(cBUG) as Integer msgBox CStr(uBound(y())) Exit Sub ErrorHandler: MsgBox "Error: " & Err() & " " & Erl() & " " & Error() End Sub
Andreas, seems to be yours...
Easy to workaround and not critical, because error is obvious -> OOo Later
Hi, this issue is still valid for oo 2.0.2 rc1 ... Oliver
verified in oo 3.1 - Error Message (in German) is: "Error: 382 17 Eigenscahft ist schreibgeschützt." are there any plans to fix it ?
Reset assigne to the default "issues@openoffice.apache.org".