To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=83724
                 Issue #|83724
                 Summary|Basic : Undeclared variable gives incorrect results
               Component|scripting
                 Version|OOo 2.2.1
                Platform|All
                     URL|
              OS/Version|Windows XP
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|kr
             Reported by|bmarcelly





------- Additional comments from [EMAIL PROTECTED] Sat Nov 17 19:39:24 +0000 
2007 -------
I found that if a not declared variable is used in a Basic arithmetic formula, 
its 
value changes depending on the formula. It is evaluated as 1 in a 
multiplication or 
division, as zero in an addition or substraction.

Same result if the variable is declared as variant but not initialized.

This bug was tested on OOo 2.2.1 and 1.1.5, so it is very old.

The problem is that VBA does not work like this : with VBA such variable is 
evaluated 
as zero. So it should be corrected in VBA compatible mode.

The various compatibility options do not change the behaviour in the version 
used 
(2.2.1).
I will attach a document with a macro for proof.

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