====================文件名或编号错误=================
800_1 2003-09-09 09:16:13 Public tempfilepath As String
Public tempfile_int, file2_int As Integer
Private Sub Strart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Strart.Click
Save1.Filter = "文本文件 (*.txt)|*.txt|所有文件 (*.*)| *.*"
Save1.ShowDialog()
FileOpen(file2_int, Save1.FileName, OpenMode.Output)
End Sub
Public Sub aaa()
Dim i1 As Byte
tempfilepath = System.IO.Path.GetTempPath & DateString & "bhjl.tmp"
FileOpen(tempfile_int,tempfilepath, OpenMode.Output)
...
For i1=0 To ddd
PrintLine(tempfile_int, i1)
Next
FileClose(tempfile_int)
bbb()
End Sub
Sub bbb()
Dim i As Byte
...
For i = 0 To d
PrintLine(file2_int, i) '程序运行到这里出现错误,错误信息“文件名或编号错误”
Next
FileClose(file2_int)
End Sub
==========================================