110,929
社区成员
发帖
与我相关
我的任务
分享
public string softOLName()
{
OleDbConnection conn = new OleDbConnection("provider=microsoft.jet.oledb.4.0; data source=data.mdb");
conn.Open();
string sql = "select * from SoftSetup";
OleDbCommand cmd = new OleDbCommand(sql, conn);
OleDbDataAdapter oda = new OleDbDataAdapter();
oda.SelectCommand = cmd;
cmd.ExecuteNonQuery();
DataSet ds = new DataSet();
oda.Fill(ds);
int i = Convert.ToInt32(this.comboBox1.SelectedIndex.ToString());
string a = Application.StartupPath + ds.Tables[0].Rows[i]["softOl"].ToString();
return a;
}
private string maxmin;
public string max_min
{
get
{
//就是在这个地方,我该如何来或等上面softOLName()中的a的值
}
set
{
//就是在这个地方,我该如何来或等上面softOLName()中的a的值
}
}
public string softOLName()
{
OleDbConnection conn = new OleDbConnection("provider=microsoft.jet.oledb.4.0; data source=data.mdb");
conn.Open();
string sql = "select * from SoftSetup";
OleDbCommand cmd = new OleDbCommand(sql, conn);
OleDbDataAdapter oda = new OleDbDataAdapter();
oda.SelectCommand = cmd;
cmd.ExecuteNonQuery();
DataSet ds = new DataSet();
oda.Fill(ds);
int i = Convert.ToInt32(this.comboBox1.SelectedIndex.ToString());
max_min = Application.StartupPath + ds.Tables[0].Rows[i]["softOl"].ToString();
return max_min;
}
private string maxmin;
public string max_min
{
get
{
//就是在这个地方,我该如何来或等上面softOLName()中的a的值
}
set
{
//就是在这个地方,我该如何来或等上面softOLName()中的a的值
}
}