dwlerwill
Technical User
- May 25, 2001
- 329
- 0
- 0
Can someone go though how you add a FileSytemObject to VB6
I'm trying to use the following code
Private Sub Command1_Click()
Dim fs As New FileSytemObject
Dim MyTxt As TextStream
MyTxt = fs.OpenTextFile("C:\Test1.txt", forwriting)
MyTxt.WriteLine Text1.Text
MyTxt.Close
End Sub
But it just says User-defined type defined.
I have click on on add Microsoft Runtime Scripting but once that is selected don't know what to do next.
I'm trying to use the following code
Private Sub Command1_Click()
Dim fs As New FileSytemObject
Dim MyTxt As TextStream
MyTxt = fs.OpenTextFile("C:\Test1.txt", forwriting)
MyTxt.WriteLine Text1.Text
MyTxt.Close
End Sub
But it just says User-defined type defined.
I have click on on add Microsoft Runtime Scripting but once that is selected don't know what to do next.