Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try/Catch Routine Not Working
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00985235
Message ID:
00985321
Vues:
35
Hi,
>>
try
{
  oSQLConn.Open();
  return oSQLConn.State.ToString();
}
catch (Exception ex)
{
  MessageBox.Show(ex.ToString();
  return "Failed";
}
<<
I thought it was illegal to have a return in a try block. Am I wrong ?
Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform