08-20-2012, 02:19 PM
public List<string>[] Select()
{
string query = "SELECT * FROM `t_magic` `a_name` WHERE `a_index` = 48";
List<string>[] list = new List<string>[3];
list[0] = new List<string>();
list[1] = new List<string>();
list[2] = new List<string>();
if (this.OpenConnection() == true)
{
MySqlCommand cmd = new MySqlCommand(query, connection);
MySqlDataReader dataReader = cmd.ExecuteReader();
while (dataReader.Read())
{
list[0].Add(dataReader["a_index"] + "");
list[1].Add(dataReader["a_name"] + "");
list[2].Add(dataReader["a_type"] + "");
}
dataReader.Close();
this.connection.Close();
return list;
}
else
{
return list;
}
}
So but it dont return anything
// i tried it so too:
Form1 f1 = new Form1();
f1.listBox1.Items.Add("Worked");
But that too dont work lol and thats the simplest way, what i do wrong?

