You should be able to use any CF function inside a CFC.

I think though that you might have it flipped around. Are you trying to use
a custom function, which you have created, inside cfscript?

If so, then as long as you've defined the function and instantiated it, you
should be able to call it from anywhere on the page.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Michel Deloux [mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 2:41 PM
To: CF-Talk
Subject: Call cfscript inside cfc - its possible?


Hi all

It's possible to call cfscript functions(application.cfm's living)
inside cfc component? I'm calling this function PrepareSearch and CF
returns an error:


Variable PrepareSearch is undefined.


The error occurred in D:\Inetpub\wwwroot\ghost\components\qryGhost.cfc: line
40

38 :                            <CFIF arguments.UserField is not "">
39 :
40 :
#REReplaceNoCase(PrepareSearch("#arguments.UserField#","user"),";","'","All"
)#

.....

What's wrong?

Cheers

MD



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:4:219278
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to