• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Right

Synopsis

                  Right(string, count)

Returns the number of characters specified by count, beginning at the rightmost position of string. The following example returns the five rightmost characters of a string:

<cfset MyString="(555)555-5555 x5555">
<cfset Extension = Right(MyString, 5)>
<cfoutput>
<b>String:</b> #MyString#<br>
<b>Extension:</b> #Extension#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint