Your variable difftype is not set for some case. I would first make
sure that 1,2,3,4 are the only values for lead_time_type_id



On Tue, 1 Feb 2005 16:39:24 +0000, Chris Kavanagh <[EMAIL PROTECTED]> wrote:
> Hi List,
> 
> This CFSET is returning the error: "Variable DIFFTYPE is undefined."
> 
> --
> 
> <CFOUTPUT query="get_tasks">
>     <CFSWITCH EXPRESSION="lead_time_type_id">
>                <CFCASE VALUE="1"><CFSET difftype="""n"""></CFCASE>
>                <CFCASE VALUE="2"><CFSET difftype="""h"""></CFCASE>
>                <CFCASE VALUE="3"><CFSET difftype="""d"""></CFCASE>
>                <CFCASE VALUE="4"><CFSET difftype="""ww"""></CFCASE>
>        </CFSWITCH>
>   <CFSET diff = DateDiff(#difftype#, Now(), #deadline#)>
> </CFOUTPUT>
> 
> --
> 
> :/   Can anybody see what I'm doing wrong?
> 
> Thanks guys,
> CK.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192587
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to