Name
Mid
Synopsis
Mid(string, startpos, count
)
Returns count
number of characters from
the string
beginning at the position
specified by startpos
. Example:
<CFSET MyString="(555)555-5555 x5555"> <CFSET AreaCode = Mid(MyString, 2, 3)> <CFOUTPUT> <B>String:</B> #MyString#<BR> <B>Area Code:</B> #AreaCode# </CFOUTPUT>
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.