Hello All,
I just noticed that if there is a var exceptionVariable for the catch block in
a cfc (code below), CFMX 7.0.1 throws the following error
"Cannot declare local variable excpt twice.
Local variables cannot have the same names as parameters or other local
variables."
This used to work on cfmx7.
Does this mean no need to var exceptionVariable for the catch block in a cfc?
Thanks
Hua
====== code ====
<cfcomponent displayname="Status Listener" output="false">
<cffunction name="save" access="public" returntype="void" output="false">
<cfscript>
var excpt = "";
try{
// try block
}
catch (Any excpt) {
//catch block
}
</cfscript>
</cffunction>
</cfcomponent>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:221208
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