Right, my day to be a right twit... I renamed variables in the wrong function last time I posted about this problem, so when I fixed that one, I created this bug...
Please ignore me, blonde day... -----Original Message----- From: Richard Hensman [mailto:[EMAIL PROTECTED] Sent: 06 April 2005 10:05 To: CF-Newbie Subject: RE: Function Calling[Scanned] I'm getting this problem again, with another function now: Entity has incorrect type for being called as a function. The symbol you have provided ItemList is not the name of a function. <cfloop list="#ListUsers#" index=User> <cfset TheItemList = ItemList(User)> <cfoutput>!#TheItemList#!<br></cfoutput> <cfif len(TheItemList) gt 0> <cfset MailData = "#MailParams(24,User,TheItemList)#"> <cfinvoke method="SendMail" argumentcollection="#MailData#" /> </cfif> </cfloop> There's the code that's calling the function, and I'm getting the error on the second iteration of the loop. So it's working fine once... Is there some kind of clash between the "instances" of the function call possibly? -----Original Message----- From: Richard Hensman [mailto:[EMAIL PROTECTED] Sent: 01 April 2005 15:40 To: CF-Newbie Subject: RE: Function Calling[Scanned] I did search my code for "LangText" but only found the calls and declaration of that function. But it works now that I've renamed it... Which is odd, because I (stupidly) S&R'd my code, and replaced all... So if I had a local var, I should have renamed that too... -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 01 April 2005 14:21 To: CF-Newbie Subject: RE: Function Calling[Scanned] Just before <cfif TemplateID gt 0> do a dump of LangText. You may be overwriting the function LangText with a local var. Ade -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.0 - Release Date: 31/03/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:843 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
