This is possible in ColdFusion 5 which will be released soon. For an set of
examples on UDF, see www.cflib.org.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Steve Reich [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 2:48 PM
> To: CF-Talk
> Subject: Writing Custom Functions
>
>
> I already know the answer to this, but I thought I would see what it might
> inspire....
>
> Is it possible to write a custom function? Here is an example of what I
> would like to be able to do. The following code limits the
> display of lname
> to 8 characters....
>
> <cfif len(lname) GT 8>#Left(lname, 8)#...<cfelse>#lname#</cfif>
>
> What I was wondering is if I could somehow create a function, and
> then call
> it like so (this is what I really want to know)...
>
> #StringLimit(lname, 8)#
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to