<!--- Create a new list. This time, though, we are not going to be using the comma as a delimiter; we are basically going to be using whitespace as the delimiter. ---> <cfsavecontent variable="strList"> Frances Mcdormand sort of has it going on?!? </cfsavecontent> <!--- Set up the string of delimiters (white space). ---> <cfset strDelimiters = ( " " & Chr( 13 ) & Chr( 10 ) & Chr( 9 ) ) /> <!--- To test how each method works, not only are we going to loop over the elements in the list, we are going to do so in an out-of-bounds fashion; notice that we are starting before 1 and going until after the end of the list. ---> <cfloop index="intI" from="0" to="#(ListLen( strList, strDelimiters ) + 1)#" step="1"> <!--- Because these methods might error, we are going to wrap each one its own CFTry / CFCatch block and display any caught errors. ---> <p> ListGetAt( #intI# ): <cftry> #ListGetAt( strList, intI, strDelimiters )# <!--- Catch error and display message. ---> <cfcatch> ERROR: #CFCATCH.Message# </cfcatch> </cftry> <br /> GetToken( #intI# ): <!--- This time, notice that we are not passing in any delimiters to the GetToken() method. This will force GetToken() to use its default set of delimiter characters. ---> <cftry> #GetToken( strList, intI )# <!--- Catch error and display message. ---> <cfcatch> ERROR: #CFCATCH.Message# </cfcatch> </cftry> </p> </cfloop>