Ujjawal Arora

Ujjawal Arora

  • 1.7k
  • 45
  • 3.4k

using loop i want to print value in 2d array my code below

Mar 7 2019 3:33 AM
while(SqlRead.Read())
{
arr[j,i+2] = SqlRead.GetDouble(0).ToString("#####0.00")
}
 
while(SqlRead.Read())
{
arr[j,i+2] = SqlRead.GetDouble(1).ToString("#####0.00")
}
while(SqlRead.Read())
{
arr[j,i+2] = SqlRead.GetDouble(3).ToString("#####0.00")
}
 
 
INSTEAD OF THIS I WANT TO USE LOOP BECAUSE I HAVE SO MANY VALUES. 

Answers (3)