ColdFusion 9.0 Resources |
About user-defined functionsYou can create your own custom functions, known as user-defined functions, or UDFs. You then use them in your application pages the same way you use standard ColdFusion functions. You can also organize functions you create by grouping related functions into ColdFusion components. For more information, see Building and Using ColdFusion Components. When you create a function for an algorithm or procedure that you use frequently, you can then use the function wherever you require the procedure. If you must change the procedure, you change only one piece of code. You can use your function anywhere that you can use a ColdFusion expression: in tag attributes, between number (#) signs in output, and in CFScript code. Typical uses of UDFs include, but are not limited to the following:
For information about selecting among user-defined functions, ColdFusion components, and custom tags, see Creating ColdFusion Elements. Note: The Common Function Library Project at www.cflib.org is
an open source collection of CFML user-defined functions.
|