Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Unable to Edit Macros with Error in Base Form | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | App Dev | Reporter: | dyrcona <jason> | ||||||
Component: | scripting | Assignee: | AOO issues mailing list <issues> | ||||||
Status: | CONFIRMED --- | QA Contact: | |||||||
Severity: | Trivial | ||||||||
Priority: | P3 | CC: | issues, mechtilde | ||||||
Version: | 3.3.0 or older (OOo) | Keywords: | needmoreinfo | ||||||
Target Milestone: | --- | ||||||||
Hardware: | Mac | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
dyrcona
2008-11-14 03:54:31 UTC
Created attachment 57988 [details]
A small database I was using for practice.
Found a workaround simpler than recreating the form: I removed this database from a Trusted Sources directory and opened it with macros disabled. This allowed me to edit the macro and fix the error (missing globalscope. before basiclibraries). However, I still think this is a problem that deserves some attention. Frank, please have a look ... Cannot reproduce. I used your database, and added the "Init" method to the "Open Document" in "Tools / Options / Customize / Events". Now, opening the form for editing ("Edit" in its context menu) opens it, then opens the Basic IDE, jumps to the Init method, and displays the error. Both the Basic IDE and the form are perfectly writable. Created attachment 57992 [details]
modified version of the first document, with the "Init" method already assigned to the "Open Document" event
I'll look at your modified version to see what happens on my system, but I was seeing this with the event in the When Loading of the "Gems" forms. I don't think I made that as clear as I might have. It looks like When Loading runs even when editing a form, and I'm not sure that is desirable behavior. Please test it in our latest version 3.2.1 there you can save Macros also in the *.odb files |