Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB7
Expertise: beginner
Jun 8, 2002

AddBackslash - Append a backslash to a path if needed

' Append a backslash (or any character) at the end of a path
' if it isn't there already

Function AddBackslash(ByVal Path As String, Optional ByVal ch As Char = "\"c) _
    As String
    If Not Path.EndsWith(ch) Then
        AddBackslash = Path & ch
    Else
        AddBackslash = Path
    End If
End Function
Francesco Balena
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap