I scanned through the online CF help and it appears that all of the List
functions, including ListAppend(), accept multiple single-character
delimiters, so passing "mystring" means to consider "m" or "y" or "s", etc.,
as delimiters.  As a query function, ValueList() appears to be different and
actually accepts a single delimiter, which can be a single character or a
string.

Chris Lofback
Sr. Web Developer

TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL  33761
www.trxi.com


-----Original Message-----
From: Tyler Silcox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 3:48 PM
To: CF-Talk
Subject: Re: list delimiters>>>


I am actually trying to use a string as a delimiter like #ListAppend(MyList,
MyValue, "mystring")# .

If I do this:

<cfscript>
MyList="";
MyList=ListAppend(MyList, "Hello There", "mystring");
MyList=ListAppend(MyList, "Good Afternoon", "mystring");
</cfscript>

MyList is equal to: Hello TheremGood Afternoon

But if I do this:

<cfscript>
MyList=ValueList(queryName.ColumnName, "mystring");
</cfscript>

then MyList is then equal to:  Hello TheremystringGood Afternoon

Why do the List functions behave differently?  Is there any rules or such to
go by when using delimiters?

Tyler Silcox
email | [EMAIL PROTECTED]

BTW: I'm not trying to use "mystring" as a delimiter, I just want to use ",
" (comma space) as a delimiter to output the list to the browser.

----- Original Message ----- 
From: "Ryan Kime" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 3:21 PM
Subject: RE: list delimiters>>>


Is this what you are looking for? If you already have a list, you can change
the delimiter like so....

ListChangeDelims(#yourList#, "+")


-----Original Message-----
From: Tyler Silcox [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 30, 2002 2:20 PM
To: CF-Talk
Subject: list delimiters>>>


Is there any known tricks to providing list delimiters to the List
functions?  Sometimes you can use a string as a delimiter, #ValueList()#,
and other times it will only allow you to use/accept the first character,
such as #ListAppend()#.  Any idears?

Tyler Silcox
email | [EMAIL PROTECTED]





______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to