MyList=ValueList(queryName.ColumnName, ', '); Is that what you mean? If you put something in the delimiter place than that will be the delimiter. If you bob, then in between each list member will be the word bob. If you used chr(09) [tab] than you would have a tab delimited list.
Tim Heald ACP/CCFD :) Application Development www.schoollink.net > -----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

