To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76510


User mroe changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|CLOSED                    |UNCONFIRMED
--------------------------------------------------------------------------------
              Resolution|INVALID                   |
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Thu Apr 19 14:18:12 +0000 
2007 -------
Thank you for your quick reply. But it doesn't resolve the problem.

First: dValue (= 3.45) has (IMHO) internal the point as decimal separator. And
variable values should work on all platforms indepent from the locale setting.
So it isn't a solution to test the configuration before every calculation ...

Sub TestLocalValue
Dim oCell As Object
Dim dValue As Double
oCell = ThisComponent.getCurrentSelection()
dValue = 3.45
print "1 Value: " & dValue
'de: 3,45    i. O.
'en: 3.45    ok
oCell.setValue( dValue )
print "2 Value: " & oCell.getValue()
'de: 3,45    i. O.
'en: 3.45    ok
oCell.setFormula( "=" & dValue )
print "3 Value: " & oCell.getValue()
'de: 0       Fehler
'en: 3.45    ok
oCell.setFormula( "=NOW()" )
dValue = oCell.getValue()
print "4 Value: " & dValue
'de: <value> i. O.
'en: <value> ok
oCell.FormulaLocal = "=JETZT()"
print "5 Value: " & oCell.getValue()
'de: <value> i. O.
'en: 0       error
oCell.setFormula( "=SECOND(" & dValue & ")" )
print "6 Value: " & oCell.getValue()
'de: 0       Fehler
'en: <value> ok
oCell.FormulaLocal = "=SEKUNDE(" & dValue & ")"
print "7 Value: " & oCell.getValue()
'de: <value> i. O.
'en: 0       error
End Sub


What is the "right" way?



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