0
点赞
收藏
分享

微信扫一扫

【Vegas原创】善用try catch

大雁f 2022-09-08 阅读 83

string strsql = ".......";

try

{

DataSet ds = db.GetDataSet(strsql);

strText = ds.Tables[0].Rows[0][0].ToString() + "%";

}

catch

{

strText = "ERROR";

}

举报

相关推荐

0 条评论