I have several text boxes named txtApp1dir, txtApp2dir, and so on. when this code runs it needs to check weather the path to an exe exists. fFile always comes up as false, even if the path in the text box is correct.
thanks
Dim sFileName As String
Dim X As Integer
For X = 1 To 3
sFileName = "txtApp" & X & "Dir.text"
Dim fFile As New FileInfo(sFileName)
If Not fFile.Exists Then
MessageBox.Show("Please check the directory of Application " & X)
End If
Next
2007-01-10
06:39:34
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
sFileName = "txtApp" & X & "Dir.text"
is not working it is comming out as txtApp1Dir.text. not as the text value of the text box txtApp1Dir.
2007-01-10
07:29:20 ·
update #1