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

Advanced UDF Use

The basic UDF syntax and use described thus far is typical of most UDFs that will be created. ColdFusion also supports some advanced UDF features that are worth reviewing.

Variable Parameter Lists

UDFs can access arguments that are not explicitly named. This is primarily of value in <cfscript>-based UDFs, as it is the only way to support optional arguments, but it can be used in tag-based UDFs too.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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