To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=66533 Issue #:|66533 Summary:|Module whith size less than 64KB is rejected as too |large. Component:|api Version:|OOo 2.0 Platform:|PC URL:| OS/Version:|All Status:|UNCONFIRMED Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|jsc Reported by:|douxenfant
------- Additional comments from [EMAIL PROTECTED] Sun Jun 18 06:01:31 -0700 2006 ------- The following macro (WriteTestSizeOfModule) writes a macro "TestSizeOfModule". The obtained macro has less than 40000 characters, all of which are in the little ASCII. If you make a module with the obtained macro, the compiler objects that the module is too large. Sub WriteTestSizeOfModule() ' This macro writes the text of a macro which has less than 40 000 characters ' (32316). If one makes a module with this one macro ' and if one tries to execute the written macro, the compiler objects ' that the program is too large. Why ? Dim ourDocument As Object Dim ourViewCursor As Object Dim i As Long Dim specialChar As Integer Dim ourText As Object Dim noFileProp() ourDocument = StarDesktop.LoadComponentFromURL("private:factory/swriter", "_blank", 0, noFileProp) ourViewCursor = ThisComponent.CurrentController.getViewCursor() ourText = ourViewCursor.getText() specialChar = com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK ourText.insertString(ourViewCursor, "Sub TestSizeOfModule()", False) ourText.insertControlCharacter(ourViewCursor, specialChar, False) ourText.insertString(ourViewCursor, "Dim j As Long", False) ourText.insertControlCharacter(ourViewCursor, specialChar, False) ourText.insertString(ourViewCursor, "j = 0", False) ourText.insertControlCharacter(ourViewCursor, specialChar, False) For i = 1 To 3226 ourText.insertString(ourViewCursor, "j = j + 1", False) ourText.insertControlCharacter(ourViewCursor, specialChar, False) Next ourText.insertString(ourViewCursor, "MsgBox j", False) ourText.insertControlCharacter(ourViewCursor, specialChar, False) ourText.insertString(ourViewCursor, "End Sub", False) End Sub --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]