I'm trying to write an application to read contents of folders, then create a text file with specific data about these folders. First, I need to input the user's preferred location.
I have limited off-and-on experience with Visual Basic over the years. I've searched on MSDN and on some threads in this site... specifically:
thread222-886799
What I need to do is click a button. Get a dialog box where user can select a folder (not a file, necessarily). Once user clicks "OK", the path to that folder is put into a text box. In the code below, what exactly is "FileOpenDlg"? Is this a standard function, or was this user-written?
Private Sub cmdBrowse_Click()
Dim strFileLocation
Dim FileOpenDlg
FileOpenDlg.ShowOpen
strFileLocation = FileOpenDlg.FileName
txtInputLocation.Text = strFileLocation
End Sub
I know this is probably a very simple question. Perhaps my searching skills aren't refined enough?
~rj
************
RudeJohn
************
I have limited off-and-on experience with Visual Basic over the years. I've searched on MSDN and on some threads in this site... specifically:
thread222-886799
What I need to do is click a button. Get a dialog box where user can select a folder (not a file, necessarily). Once user clicks "OK", the path to that folder is put into a text box. In the code below, what exactly is "FileOpenDlg"? Is this a standard function, or was this user-written?
Private Sub cmdBrowse_Click()
Dim strFileLocation
Dim FileOpenDlg
FileOpenDlg.ShowOpen
strFileLocation = FileOpenDlg.FileName
txtInputLocation.Text = strFileLocation
End Sub
I know this is probably a very simple question. Perhaps my searching skills aren't refined enough?
~rj
************
RudeJohn
************