Eh? Maybe I missed it but his list append is ok... > <cfset NewEvent = #ListAppend(Variables.NewEvent, > UCase(Left(count, 1)), " ")#>
Of course, he doesn't need the # signs around the end. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Sean A Corfield [mailto:sean@;corfield.org] > Sent: Tuesday, November 05, 2002 2:35 PM > To: CF-Talk > Subject: Re: CFML Bug or Not? Anyone know > > > When you construct the list, you need to quote each item as > you add it > to the list. > > On Tuesday, Nov 5, 2002, at 10:13 US/Pacific, Graham Pearson wrote: > > > I have been writing my own web based calendaring system and > have been > > able > > to duplicate a problem that I have been receiving which I > am unable to > > solve. > > > > Problem is if one of the event administrators add's an > event and it > > happens > > to put in a comma the page breaks with the following error message: > > > > #Left(right(Variables.NewEvent, Variables.EventCount - 2) , 20)# > > Parameter 2 of functio nRight which is now -1 must be a positive > > interger. > > Line 393 colume 68 > > > > Here is the cfloop code where it breaks. Line 388 is the first line > > > > <cflock scope="session" type="readonly" timeout="5"> > > <cfloop index="EventGlance" List="#Session.Calendar.EventListing#" > > Delimiters="|"> > > <cfset EventCount = #Len(EventGlance)#> > > <cfset EventSpaces = #ListLEn(EventGlance, " ")#> > > <cfset newevent = ""> > > <cfloop index="count" list="#Variables.EventGlance#" > > Delimiters=" "> > > <cfset CountLen = #Len(Variables.Count)#> > > <cfset NewEvent = #ListAppend(Variables.NewEvent, > > UCase(Left(count, 1)), " ")#> > > <cfset NewEvent = #Variables.NewEvent# & > > #Mid(Variables.Count, 2, #Variables.CountLen - 1)#> > > </cfloop> > > </cflock> > > <cfoutput> > > <option>#Left(Variabels.EventGlance, 2)# - > > #Len(Right(Variables.NewEvent, > > Variables.EventCount - 3), 20)# > > </option></cfoutput> > > </cfloop></cflock> > > > > An example would be Http://calendar.zebras.net and viewing > the current > > month. The first event shows 6 - 30pm beofre the 01- Sat > Preparation. > > > > The entire event should be PTO meeting@Columbia, 6:30PM > instead it is > > splitting the event title at the comma. > > > > > > > > Any Ideas > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

