Start by sticking them in the same page you're calling from (just to
get the hang of it):
<cfscript>
function sayHello (name) {
return 'Hello, ' & name;
}
</cfscript>
<cfoutput>sayHello('Joe')</cfoutput>
Yields: Hello, Joe
But the best way is to stick all of your UDFs on one page, and include
the file in your application.cfm. Or, you can organize functions into
libraries.
Jamie
On Thu, 31 Jan 2002 09:27:48 -0800, in cf-talk you wrote:
>I was looking at cflib.org at the various UDFs that can be downloaded.
>
>However, I'm not aware of how you use the UDFs.
>
>1. Do you place them in the root of the site you're working in or the
custom
>tags directory and
>
>2. How do you call and use them as far as within your scripts.
>
>I haven't had a chance to check the docs on CF 5 yet, so would
appreciate
>any feedback.
>
>Thanks.
>
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists