To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=77338 Issue #|77338 Summary|2 or more numerical labels cause compile error in Open |Office.org Basic Component|framework Version|OOo 2.2 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|ui Assigned to|tm Reported by|hba
------- Additional comments from [EMAIL PROTECTED] Mon May 14 09:23:49 +0000 2007 ------- Steps to reproduce the behaviour in OOo-dev 2.2.0: 1) Start an OpenOffice.org application (eg Writer or Calc). 2) Open the OOo-dev Basic Macros dialog (Tools/Macros/Organize Macros/OOo-dev Basic). 3) Create a new macro in the new document. 4) Create a new module in the new document. 5) Edit the Main macro of this module in the macro editor so that it looks like this: Sub Main 1: 2: End Sub 6) Try to compile or run the sub (or just close the Basic window and open it again). 7) A message box with the following error message appears: BASIC syntax error. Label $(ARG1) already defined. The behaviour could be reproduced in: i) OOo-dev 2.2.0 ii) OOo 2.2 FSF.hu Build 2 iii) OOo 2.1 FSF.hu The error message in the Hungarian builds (only included here to aid Hungarian searches): BASIC szintaktikai hiba. A címke már létezik $(ARG1). Remarks 1) One numerical label (with or without further non-numerical labels) doesn't cause the error. 2) More code doesn't seem to prevent the error. 3) This issue could be divided into 2 sub-issues: i) Not accepting 2 or more numerical labels. ii) Displaying $(ARG1) instead of the actual label name. 4) This issue may make VBA macro conversion a bit more difficult. 5) Quick fix: replace numerical labels with non-numerical labels. For this, you can use the following regular expression and replace string: Search for: \<([0-9]+)\> Replace with: label_& (This didn't work for me in the Find and Replace function of the Basic editor, try the Find and Replace function of OpenOffice.org Writer instead.) --------------------------------------------------------------------- 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]