Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_StringCaseSensitiveString Functions

Public Function Trim (
s As String,
Optional AddlTrimChars = ""
) As String

Trim whitespace (space, tab, CR, LF) and additonal defined chars from the start and end of the string.

s as String

The string to trim

Optional AddlTrimChars as Variant = ""

More characters to trim from the string

Call Template:

Dim s As String
s = xf.StrCS.Trim(s)
s = xf.StrCS.Trim(s, AddlTrimChars)

See Also:

Example 1:

xf.Str.Trim("  %% Token %%  ")        => %% Token %%
xf.Str.Trim("  %% Token %%  ", "%")   => Token
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd