|
-
Mar 7th, 2014, 01:12 AM
#3
Thread Starter
PowerPoster
Re: Show only part of a filename in a label vb6
 Originally Posted by Bonnie West
Code:
Public Function GetBaseName(ByRef Path As String) As String
Dim StartPos As Long, EndPos As Long
StartPos = InStrRev(Path, "\") + 1&
EndPos = InStrRev(Path, ".")
GetBaseName = Mid$(Path, StartPos, EndPos - StartPos)
End Function
Just what i needed thanks
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|