you can use the array as the following ,i complied it and run correctly.private void Form1_Load(object sender, System.EventArgs e) { Orgnizition aa=new Orgnizition(); string[] temp=new string[3]; temp=aa.GetDeptNames("1"); for(int i=0;i<temp.GetLength(0);i++) { textBox1.Text+=temp[i]; }
{
Orgnizition aa=new Orgnizition();
string[] temp=new string[3]; temp=aa.GetDeptNames("1");
for(int i=0;i<temp.GetLength(0);i++)
{
textBox1.Text+=temp[i];
}
}
string[] strOrgParams =organizition.GetOrgName(c_txtDeptSelected.Text );
是对的,我成员函数写错了