Nov 23, 2006
User Defined Functions
Posted by: CFHow.com
Like most programming languages, ColdFusion lets you create your own functions. User defined functions or UDFs for short can be used anywhere on the page where they are located as if they were any other built in ColdFusion function. If you need to use a ColdFusion function on more than one page, consider keeping it in a component or an include file. Technically you could also keep it in the Application File and then you’d be able to access it from any of the applicable pages, but that can turn out really terrible, click here for the why.
In any event, user defined functions add a level of modularity to your programming which really adds to the scalability and manageability of your projects. In this article we’ll go ahead and create a really basic function for formatting a datetime object. Something like this can really come in handy on any sort of big report where might need to format a date time object in the same way in different places. Doing this in a UDF not only makes your code a little easier to read, but also makes modifications a lot simpler.
View the rest of the article on ColdFusion User Defined Functions CFHow.com!
Continuing the discussion
...
Comments
Post a Comment
Search
About The Author
Links
Recent Comments
-
Custom Term Papers:
<
Substantially, the post is really the greates...
[View] -
Lemy:
<
Christian Louboutin Ariella Clou Silver Studd...
[View] -
Dennis:
<
I find this site really interesting and helpf...
[View] -
Term Papers:
<
I have been searching information by visiting...
[View] -
uggcardy:
<
Imagine the shade in the summer, louis vuitt...
[View] -
uggcardy:
<
Elegant lotus-style collar,louis vuitton bags...
[View] -
uggcardy:
<
Accompanied by a white T-shirts Sca...
[View] -
uggcardy:
<
Summer is the season of sunshine, of course...
[View] -
juicy couture:
<
Fantastic post. Your post was that great, ke...
[View] -
Ugg Boots:
<
.....04.....You also are struggling to find a...
[View]