I want to make sure I clarify that CFScript blocks and UDF functions are 
two completely different things.

  In a UDF, you can only return a single value.  That value can be a 
complex value (Array or Structure), though.
  CFScript blocks don't explicitly return any values, although you can 
create variables in any scope of your choosing that will be accessible.

  I'm still not fully understanding why it matters how the customer's give 
you the data, as long as it is in a valid date.   You'll just need to 
massage it before displaying it back to them, using the appropriate 
mask.  ( DateFormat?).

  Are you saying that you are being given April 5th (I.e. 4/5/2002) and the 
system is seeing it as May 4th (5/4/2002)?  What are the problems with 
EuroDate validation?




At 02:29 PM 6/27/2002 -0300, you wrote:
>At 01:22 PM 6/27/02 -0400, Jeffry Houser wrote:
> >   I do worry that you are re-inventing the wheel.  Have you looked at the
> >IsDate or LSIsDate function?
> >   I'm not sure if ColdFusion has a specific way to compare against a given
> >mask, though, but if your intent is to turn it into an ODBC date, the given
> >mask doesn't matter if you use the CreateODBCDate function.
>
>I may well be reinventing the wheel. :)  I do that all the time.  But my
>problem is I get customers who want mm/dd/yyyy and others who want
>dd/mm/yyyy and the eurodate validation doesn't always work (the day and
>month get swapped.)  So I wrote a basic CF program to handle this, but if I
>can do it as a UDF it would be much slicker (and give me some practice
>creating UDFs.)  Perhaps it is impossible to break out of CFSCRIPT block.
>
>How many variables can I return with a CFSCRIPT block?
>
>T
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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

Reply via email to