Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_InteractInteraction

Public Function FolderNameFormat (
Path As Variant,
Optional WithTrailingSlash As Boolean = True,
Optional ConvertForwardSlash As Boolean = True
) As String

Format the path with or without a trailing slash

Path as Variant

The path

Optional WithTrailingSlash as Boolean = True

Ensure the presence or absence of a trailing slash

Optional ConvertForwardSlash as Boolean = True

Convert forward slashes in the path to backslashes

Call Template:

Dim s As String
s = xf.Interact.FolderNameFormat(Path)
s = xf.Interact.FolderNameFormat(Path, WithTrailingSlash, ConvertForwardSlash)

See Also:

Example 1:

Filename = FolderNameFormat("C:\Temp", True)     ==> C:\Temp\
Filename = FolderNameFormat("C:\Temp\", False)   ==> C:\Temp
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd