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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm