T
Teizhcial
Guest
Ok so I want to open a .txt file and when it opens the text in it appears in text1.text
Heres what I have...
I know theres a simple solution to this but I can't get it from PSC because I can't DL anything right now.
Heres what I have...
Code:
Private Sub Command1_Click()
On Error Resume Next
Dim Ofile As String
With Form1.commonDialog1
.DialogTitle = "Open Variable List"
.Filter = "Text File (*.txt)|*.txt|All Files (*.*)|*.*"
.CancelError = False
.FileName = "*.txt"
.ShowOpen
Ofile = .FileName
form2.Text1.Text = CommonDialog1.FileName.txt '??
End With
End Sub
I know theres a simple solution to this but I can't get it from PSC because I can't DL anything right now.

