Combines two strings (filename and path) into a full path.
Combines two strings (filename and path) into a full path.
Rate Combines two strings (filename and path) into a full path.
(2(2 Vote))
If Right(sPath, 1) = "\" And Left(sFile, 1) <> "\" Then
CreateFullPath = sPath & sFile
ElseIf Right(sPath, 1) <> "\" And Left(sFile, 1) = "\" Then
CreateFullPath = sPath & sFile
ElseIf Right(sPath, 1) <> "\" And Left(sFile, 1) <> "\" Then
CreateFullPath = sPath & "\" & sFile
ElseIf Right(sPath, 1) = "\" And Left(sFile, 1) = "\" Then
CreateFullPath = Left(sPath, Len(sPath) - 1) & sFile
End If
End Function
Combines two strings (filename and path) into a full path. Comments
No comments yet — be the first to post one!
Post a Comment