【Vegas原创】善用try catch

2年前 (2022) 程序员胖胖胖虎阿
278 0 0

 

  string strsql = ".......";
                    
try
                    {
                        DataSet ds 
= db.GetDataSet(strsql);
                        strText 
= ds.Tables[0].Rows[0][0].ToString() + "%";
                    }
                    
catch
                    {
                        strText 
= "ERROR";
                    }

 

版权声明:程序员胖胖胖虎阿 发表于 2022年9月23日 上午6:00。
转载请注明:【Vegas原创】善用try catch | 胖虎的工具箱-编程导航

相关文章

暂无评论

暂无评论...