
Reading file name from text box and/or File List Box
Are you using FileListControl.Filename to pass the filename. If so, you
will probably need to tack on the path before the filename.
FileListControl.Filename returns *only* the filename and *not* the path.
I.e., returns RegEdit.exe *not* C:\Windows\RegEdit.exe. The file will not
open unless you specify the full path.
Hope this helps.
MJ
Quote:
>Hello friends out there:
>I am new to VB so please don't laugh on my question. I am writing a
>program in which I want the user to supply a file name (for opening as
>sequential file) either through a text box or thorough a File List
>control. It works fine with the text box, but not with the control. File
>name is not transferred from the control to my program subroutine
>(variable).
>Any suggestions?
>Thanks.
>Anil Namdeo