CodeItBetter Programming Another VB Programming Blog

How to remove backslash from the directory

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'File/Folder Handling - How to remove backslash from the directory
Option Explicit
 
Public Function RemoveBackslash(ByVal sFolder As String) As String
    Dim I As Integer
    I = Len(sFolder)
    If I <> 0 Then
        If Right$(sFolder, 1) = "\" Then
            RemoveBackslash = Left$(sFolder, I - 1)
        Else
            RemoveBackslash = sFolder
        End If
    End If
End Function
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.