Issue 34270

Summary: DIm(cMAX) does not work if Const cMAX is placed in a different module ...
Product: udk Reporter: Oliver Brinzing <oliver.brinzing>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 1.1.2   
Target Milestone: AOO PleaseHelp   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Oliver Brinzing 2004-09-16 18:17:59 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
Comment 1 kay.ramme 2004-09-27 10:55:31 UTC
Andreas, seems to be yours...
Comment 2 ab 2004-10-04 10:39:03 UTC
Easy to workaround and not critical, because error is obvious -> OOo Later
Comment 3 Oliver Brinzing 2006-02-17 13:55:36 UTC
Hi,

this issue is still valid for oo 2.0.2 rc1 ...

Oliver
Comment 4 Oliver Brinzing 2009-05-19 08:03:09 UTC
verified in oo 3.1 - 

Error Message (in German) is: "Error: 382 17 Eigenscahft ist schreibgeschützt."

are there any plans to fix it ?
Comment 5 Marcus 2017-05-20 11:29:19 UTC
Reset assigne to the default "issues@openoffice.apache.org".