Issue 34270 - DIm(cMAX) does not work if Const cMAX is placed in a different module ...
Summary: DIm(cMAX) does not work if Const cMAX is placed in a different module ...
Status: ACCEPTED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1.2
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 18:17 UTC by Oliver Brinzing
Modified: 2017-05-20 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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".