A
AMP
Hello,
I am trying to convert MD array of ints to doubles;
I just want each x to be converted.
I am getting a Nullexception.
I was able to do this with a single dimention, but I am having
problems here.
OurData is passed correctly but GraphData looks like one dimention
when I get to Line commented with an error
public double[][] GraphData;
public Form3(int[][] OurData)
{
GraphData = new double[OurData.Length][];
for (int y=1;y<OurData.Length;y++)
{
foreach (int x in OurData[y])
{
GraphData[y][x] = System.Convert.ToDouble(x); //
ERROR
}
InitializeComponent();
}
}
Thanks for your help
Mike
I am trying to convert MD array of ints to doubles;
I just want each x to be converted.
I am getting a Nullexception.
I was able to do this with a single dimention, but I am having
problems here.
OurData is passed correctly but GraphData looks like one dimention
when I get to Line commented with an error
public double[][] GraphData;
public Form3(int[][] OurData)
{
GraphData = new double[OurData.Length][];
for (int y=1;y<OurData.Length;y++)
{
foreach (int x in OurData[y])
{
GraphData[y][x] = System.Convert.ToDouble(x); //
ERROR
}
InitializeComponent();
}
}
Thanks for your help
Mike