I have the below code:
public int[] _SpDep = new int[50];
public int[][] _SpDepCnt = new int[50][];
public int[][] _SpReadType = new int[50][];
_DepNo = Convert.ToInt16(strFileName[n].Substring(1, 2));
_CntNo = Convert.ToInt16(strFileName[n].Substring(6, 2));
_SpDep[_DepNo] = 1;
_SpDepCnt[_DepNo][_CntNo] = 1;
_SpReadType[_DepNo][_CntNo] = 1;
There's an error when reach this line:
_SpDepCnt[_DepNo][_CntNo] = 1;
But I don't know what's wrong? Any opinions? Is it the 2d array declare wrongly?