Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_StringCaseSensitiveString Functions

Public Function SubString (
s As String,
StartPosition As Long,
Optional Length As Long = -1
) As String

Get the substring at the position and length: identical to the built in Mid function. Returns an error if the StartPosition is beyond the string end. See SafeMid for a fault tolerant version.

s as String

The string to search

StartPosition as Long

The start position of the substring

Optional Length as Long = -1

The number of characters to return, or -1 for the rest of the string

Call Template:

Dim s As String
s = xf.StrCS.SubString(s, StartPosition)
s = xf.StrCS.SubString(s, StartPosition, Length)

See Also:

Example 1:

xf.Str.SubString("The King's counting house", 12)      => counting house
xf.Str.SubString("The King's counting house", 12, 5)   => count
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd