AddBackslash

Top  Previous  Next

function AddBackslash(sDirectory) As String

 

Adds a trailing backslash character if it doesn't exist in the passed directory.

 

Parameters

 

sDirectory ... String expression with or without trailing backslash.

 

Example:

Dim s

 

= AddBackslash("e:\exp")

' returns s = "e:\exp\"

 

= AddBackslash("e:\exp\")

' returns s = "e:\exp\"




Translate document: