1
Reply

Problem with Object [ ]

beebombay

beebombay

Mar 22 2005 9:03 AM
2k
Hi, I have the following code Object[] values = new Object[columns]; Object[,] result = new Object[rows,columns]; while(myDataReader.Read()) { myDataReader.GetValues(values); int i = 0; foreach (object MyValue in values) { // Code to get values[] in result[i, ] i++; } } I want to put an normal array (values []) in a Rectangular array (result [counter i, value of other arry]) How's that possible? And what is statement to return a object array? ( Public "Object[]" Database ) Thx in advance, Ciao Bee

Answers (1)