To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=60132
                  Issue #:|60132
                  Summary:|StarBasic should take '#' of File placeholder as
                          |optional as VBA do
                Component:|scripting
                  Version:|OOo 2.0
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|ab
              Reported by:|sus





------- Additional comments from [EMAIL PROTECTED] Fri Jan  6 05:04:24 -0800 
2006 -------
Close and Open does not work in StarBasic when # is missing

Attached Excel document with following macro 

Sub ExampleWorkWithAFile()
Dim sLine As String
Dim aFile As String
Dim sMsg As String
aFile = "c:\data.txt"
Open aFile For Output As 2
Print #2, "This is a line of text2"
Print #2, "This is another line of text2"
Close 2
Open aFile For Input As 2
While Not EOF(2)
Line Input #2, sLine
If sLine <> "" Then
sMsg = sMsg & sLine & Chr(13)
End If
Wend
Close 2
MsgBox sMsg
End Sub

and a changed working StarBasic document

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