|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I get just the file name rather than the entire apathIf I use commondialog1.FileName, I get the entire path along with the
file name. How do I get just the file name? On 21 Mar 2006 21:04:32 -0800, "Joy2006" <shubh***@gmail.com> wrote: ' ##############################################>If I use commondialog1.FileName, I get the entire path along with the >file name. How do I get just the file name? ' ' C:\DEV\USLIB\USLIB.BAS --> USLIB.BAS ' Function ExtractFileName$(Fle$) Dim L9% ExtractFileName$ = Fle$ ' 30/8/02 JF For L9 = Len(Fle$) To 1 Step -1 If InStr(":\", Mid$(Fle$, L9, 1)) Then ExtractFileName$ = Mid$(Fle$, L9 + 1) L9 = 1 End If Next End Function "Joy2006" <shubh***@gmail.com> wrote in message FileTitlenews:1143003871.920323.138970@e56g2000cwe.googlegroups.com... > If I use commondialog1.FileName, I get the entire path along with the > file name. How do I get just the file name?
Any known problems running VB6 application with Intel Centrino Duo
Windows or VB problem - Please help question -- close adodb connection inside dll Hidden treasures... vb6 and iso 8601 date format CommonDialog sets Windows Default Printer - is Mike Williams out there? VBnet 2005? error making function call with multiple parameters to dll click on a menu Error creating Oracle object |
|||||||||||||||||||||||