A
altman
Hello,
here is my vode:
***
ArrayList liste = new ArrayList();
SqlDataReader reader2 = macommande_mc.ExecuteReader();
string mc = "";
while (reader2.Read())
{
mc +=
reader2["VALUE_KEYWORD"].ToString() ;
liste.Add(mc);
}
I need to add all the values from my data reader into this:
string [] keywords = { "value1", "value2", "value3", "valueX" }
I tried this: string[] keywords = { liste.Tostring() } but it didn't work
Any idea?
Thanks,
here is my vode:
***
ArrayList liste = new ArrayList();
SqlDataReader reader2 = macommande_mc.ExecuteReader();
string mc = "";
while (reader2.Read())
{
mc +=
reader2["VALUE_KEYWORD"].ToString() ;
liste.Add(mc);
}
I need to add all the values from my data reader into this:
string [] keywords = { "value1", "value2", "value3", "valueX" }
I tried this: string[] keywords = { liste.Tostring() } but it didn't work
Any idea?
Thanks,