|
-
Feb 2nd, 2004, 09:04 PM
#1
Thread Starter
Frenzied Member
[VB] GetFileNameWithoutExtention
Private Function GetFileNameWithoutExtention(ByVal sStr As String) As String
On Error Resume Next
Dim i As Integer, b As Integer
i = InStrRev(sStr, ".")
b = InStrRev(sStr, "\")
If i = 0 Then Exit Function
GetFileNameWithoutExtention = Mid$(sStr, b + 1, Len(sStr) - i)
End Function
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
|