Chris Kavanagh wrote:
> 
> 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?

What happens when the query returns something else then 1, 2, 3 or 4?

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192585
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

Reply via email to