• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

User-Defined Functions

Similar to the way in which you use custom tags, you can also create custom functions. If there is a particular function that you need to perform repeatedly and you cannot find that function in ColdFusion’s 250+ built-in functions, you can create your own user-defined function.

User-defined functions (UDFs) are similar to custom tags, except they are created using ColdFusion Script. UDF code can be in the template itself or included using <CFINCLUDE> or the Application.cfm file. Like custom tags, developers also create and share UDFs. You can find many open-source functions at the www.cflib.org web site. This web site is shown in Figure 5.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint