ListChangeDelims

Returns list with all delimiter characters changed to new_delimiter string.

See also ListFirst and ListQualify.

Syntax

ListChangeDelims(list, new_delimiter [, delimiters ])
list

List of delimiters being changed.

new_delimiter

String being used as a new delimiter.

delimiters

Set of delimiters used in list.

Examples

<!--- This example shows ListFirst, ListLast, and ListRest --->
<HTML>
<HEAD>
<TITLE>ListFirst Example</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">
<H3>ListFirst Example</H3>

<!--- Find a list of users who wrote messages --->
<CFQUERY NAME="GetMessages" DATASOURCE="CFExpress">
SELECT    Subject, Posted, Message
FROM    Messages
</CFQUERY>

<CFSET temp = ValueList(GetMessages.Message)>
<!--- Show the first user in the list --->
<P>The first message in the list is 
<UL>
<LI><CFOUTPUT>#ListFirst(temp)#</CFOUTPUT>
</UL>
<P>The rest of the messages are as follows:
<UL>
<li>
<CFOUTPUT>#ListChangeDelims(ListRest(temp), "<li>")#</CFOUTPUT>.
</UL>
<P>The last message in the list is 
<UL>
<LI><CFOUTPUT>#ListLast(temp)#</CFOUTPUT>
</UL>
</BODY>
</HTML>