In my pre-page processing (application.cfm|cfc) I loop over the FORM collection and trim each value... Then you never have to worry about trimming anything ever again. I love it, never looked back.
....................... Ben Nadel www.bennadel.com -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, June 01, 2006 4:16 PM To: CF-Talk Subject: RE: Problems with LEN I keep saying to myself that I should write the user defined function LenTrim(). Using this construct has become so ingrained with me that my fingers automatically type "trim" whenever I type "len". But, for some reason, often forget to type the internal left parentheses. The main reason I have not bothered to do this is that it would probable be just as much trouble to remember to include the UDF file on every template that I might use a lenTrim function as it is to debug the error I get when I forget the internal parentheses. Is there someway to add a function to the CF system so that it is automatically available to all templates as the built in functions are? Is there a directory of functions or something similar to CF tags/custom tags? -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241969 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

