To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=61071
                  Issue #:|61071
                  Summary:|Basic statement "name as" overwrites existing file
                          |without warning
                Component:|scripting
                  Version:|OOo 2.0.1
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|kr
              Reported by:|regina





------- Additional comments from [EMAIL PROTECTED] Mon Jan 23 15:36:12 -0800 
2006 -------
I use German OOo2.0.1 on German WinXP Home

Generate a directory c:\test with the file dummy.txt and dummy.sav.
Now test the following script

Sub Main
On Error Goto Fehler
Name "c:\temp\dummy.txt" as "c:\temp\dummy.sav"
msgBox "Name as done"
exit sub
Fehler:
msgbox "Fehler Nr."& err & " Text="& error$
exit sub
End Sub

The file dummy.sav is overwritten with the content of file dummy.txt.

Expected behavior: An error "58 File already exists" is thrown.

If overwriting is intended, then the online help should mention it.

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