public string tableInsert(DBHelper dbh, string t, string k, string v) { string sql = "insert into " + t + "(" + k + ") values(" + v + ");select SCOPE_IDENTITY();"; try { BaseApi ba = new BaseApi(dbh); return(ba.execTrans(sql)); } catch (Exception e) { //Native.writeToPage(Native.getErrorMsg(e.Message)); return(Native.getErrorMsg(e.Message)); } }