Click here to Skip to main content
15,916,702 members

Comments by JackStone (Top 7 by date)

JackStone 16-Mar-11 17:58pm View    
Deleted
object[] objs = new object[value];
string[,] strings = new string[value,5];
int pos = 0;
while (Reader.Read())
{
int test = Reader.GetValues(objs);

for (int teeeest = 0; teeeest <= 5; teeeest++)
{
strings[pos++, teeeest] = string.Join(", ", objs);
}

}
for (int test1 = 0; test1 < strings.Length; test1 ++)
{
for (int test2 = 0; test2 < strings.Length; test2 ++)
{
Console.WriteLine(strings[test1,test2 ]);
}
}
My code is like this now. What needs to be changed?
JackStone 16-Mar-11 17:58pm View    
Deleted
object[] objs = new object[value];
string[,] strings = new string[value,5];
int pos = 0;
while (Reader.Read())
{
int test = Reader.GetValues(objs);

for (int teeeest = 0; teeeest <= 5; teeeest++)
{
strings[pos++, teeeest] = string.Join(", ", objs);
}

}
for (int test1 = 0; test1 < strings.Length; test1 ++)
{
for (int test2 = 0; test2 < strings.Length; test2 ++)
{
Console.WriteLine(strings[test1,test2 ]);
}
}
My code is like this now. What needs to be changed?
JackStone 16-Mar-11 17:56pm View    
Deleted
object[] objs = new object[value];
string[,] strings = new string[value,5];
int pos = 0;
while (Reader.Read())
{
int test= Reader.GetValues(objs);

for (int teeeest = 0; teeeest <= 5; teeeest++)
{
strings[pos++, teeeest] = string.Join(", ", objs);
}

}
for (int test1= 0; test1< strings.Length; test1++)
{
for (int test2= 0; test2< strings.Length; test2++)
{
Console.WriteLine(strings[test1,test2]);
}
}
My code is like this now. What needs to be changed?
JackStone 16-Mar-11 17:48pm View    
Deleted
now my string[,] strings = new string[value,4];
how can i add now each line on strings array ?
What needs to be changed on strings[pos++] = string.Join(", ", objs); ??
JackStone 16-Mar-11 17:42pm View    
Deleted
The first results that comes out of the strings[pos++] = string.Join(", ", objs); is:
John, London, 1234, UK
Smith, Berlin 2345 GE
etc
etc
etc

Can i now save this data into string array of size, in my example 2X4, so i can edit them the way i want ?
string[] strings = new string[value]; should be changed to
string[,] strings = new string[value, ?????];
and then??