At 12:45 PM 6/27/02 -0400, Jeffry Houser wrote: > I'm not sure what makes a variable "good" in this case, but if you offer >more information, perhaps I can offer more information.
I'm checking the value of a date to make sure it's legal. (I've had no end of problems with the date parsing side of CFINPUT so I'm figured I'd do it myself.) I'm passing the date entered and the date mask. The UDF pulls out the value of the date (day, month and year fine) but I want to be able to check to see if it is a legal day and month before making it into an ODBC date. So I'm doing something like this: Check to see what mask is wanted: Grab the digits up to the first / and put in day, month or year, depending on mask. Repeat for up to send /, and finally for last piece of data. Now if there aren't enough slashes or if the day or month isn't legal, I'd like to display and error and drop out of the cfscript block without converting to ODBC date. I used to do this in straight CF code and used a javascript pop up to display the error. T ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

