一个return就可以.
1.定义成静态变量 static int sta; 
2.增加 finally部分 finally{return sta;}

解决方案 »

  1.   

    try
        {
      if (!this.isDbAdpReady)
      {
    sta=1;
    message="数据适配器未就绪.";
                                    }
                                    if(sta==-1)
                                    {
                                         //....其它判断条件
                                         if(判断失败) { sta=2;  }
                                     }                               
         if(sta==-1)
                                     {
                                          //....其它判断条件
                                          if(判断失败) { sta=3;  }
                                     }
    }
                            catch( Exception err)
    {
      ...
    }
                               finally { return sta; ]