Steve Goodhall
steve at goodhall.info
Tue Mar 5 12:55:29 CST 2013
I believe you can write the "catch" without the parameter. Don't have the
right machine with me to verify that. I will tey it tonight.
Steve Goodhall
-----Original message-----
From: David McAfee <davidmcafee at gmail.com>
To: Access Developers discussion and problem solving
<accessd at databaseadvisors.com>
Sent: Tue, Mar 5, 2013 18:44:09 GMT+00:00
Subject: [AccessD] OT C# Try Catch question
Sorry for the OT question, just wondering if someone here knows the answer.
try
{
//Some stuff here;
}
catch (Exception ex)
{
return false;
}
The variable 'ex' is declared but never used
You can get rid of the error by doing something like writing ex to the
console, but is there a better/standard way of avoiding the warning?
Thanks,
David
--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com