未将对象引用设置到对象的实例 什么意思
空城蓝梦 2012-03-19 02:41:27 public static DataSet dataSet(string sqlStr)
{
OleDbDataAdapter da = new OleDbDataAdapter();
DataSet ds = new DataSet();
try
{
openConnection();
comm.CommandType = CommandType.Text;
comm.CommandText = sqlStr;
da.SelectCommand = comm;
da.Fill(ds);
}
catch (Exception e)
{
throw new Exception(e.Message);
}
return ds;
}
用的时候 DataSet myds = Common.dataSet(sql); 它就提示未将对象引用设置到对象的实例 是怎么回事