><cfif Len(form.myVariable) GT 0>
>  <cfset myVariable=form.myVariable>
><cfelse>
>  <cfset myVariable="">
></cfif>
>

Oh, that's nothing! One of the developers (and I use that term loosely) that I 
used to work with often would come up with code that just boggled the mind. One 
of my favorites (unfortunately I did not save the actual code) involved looping 
over a query to set a single variable. After staring at it in confusion for a 
few minutes, I realized he had retrieved the entire database table and was 
looking for the one record he needed, rather than just adding a Where clause to 
his query! 

-------------------------------
Mary Jo Sminkey
[EMAIL PROTECTED]
www.cfwebstore.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:202057
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