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






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:842
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

Reply via email to