I am trying to figure out why my try/catch is not working inside the following 
code example below.  Can someone please clue me in on what I am doing wrong 
here?

Thanks,
Dave Hatz

<cffunction name="CheckIt" returntype="boolean">
<cfscript>
  var chars="hello ColdFusion World";
  var j=""; 
  try {
    for (i = 1; i lte 8; i=i+1) {
      j = j + ((Mid(chars,i,1)));
    }
    result = true;
  }
  catch (Exception e) {
    result = false;
  }
</cfscript>
<cfreturn result>
</cffunction>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269588
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to