To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=70380
                 Issue #|70380
                 Summary|unexpected behaviour when using basic 'erase'
               Component|framework
                 Version|OOo 2.0.4
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|scripting
             Assigned to|ab
             Reported by|npower





------- Additional comments from [EMAIL PROTECTED] Thu Oct 12 23:54:46 -0700 
2006 -------
so the proposed patch here is incomplete ( but should serve as a start point for
discussion etc. )
also there is I think another issue associated with this[*], we can discuss
whether it's necessary to raise another issue here or fix it with this patch

what's the story?
current behaviour seems to completely destroy the array you 'erase' and free all
memory. For vba interoperability obviously thats not the best ;-) the patch here
just clears the array ( but not the memory ) if the compatibility option is
specified.

Note: currently the patch make no distinction made between variant and fixed
array's ( but that should be easy to do? ) so this is a first step ;-) vba
behavior apparently is
    * if its a variant array ( behave like ooobasic does now )
    * if its a fixed array, set the values to appropriate initial ones

so, if compatability no matter what type of array it is it is 'zeroed' rather
than released
for non-compatibility mode of course the behavior is the same as always.

[*] even in "normal" mode after an erase it is possible to navigate the array
without "getting index out of bounds"

---------------------------------------------------------------------
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]

Reply via email to