L
labjac
Guest
Hallo
Probably going to hit myself with the answer, but for some reason I cannot access the index of the declared Array.
I've create a Array of int[] and passed it back from a method with Array declared.
But normally I can access the int[x] with x, but Array doesn't seem to work the same way.
private DataTable GenerateVisualLocations(LocationSymbols Locationsymbol)
{
int nrArea = Locationsymbol.NrArea();
int nrZones = Locationsymbol.NrZones();
int nrRows = Locationsymbol.NrRows();
int nrColumns = Locationsymbol.NrColumns();
Array zoneSplit = Locationsymbol.ZoneSplit();
DataTable dt = new DataTable();
int countRow = 1;
int countColumn = 1;
int loopcount = 1;
int loopQty = nrRows * nrColumns;
dt = TableMatrix.CreateSetTableMatrix("VisualDataTable", nrColumns, nrRows);
while (loopcount <= loopQty)
{
while (countRow <= nrRows)
{
while (countColumn <= nrColumns)
{
while (countColumn < zoneSplit[countColumn]) "?????"
{
//Still to be implemented
}
dt.Rows[countRow-1][countColumn] = WallNumberGenerator.PaddLeft(nrArea, "0") + WallNumberGenerator.PaddLeft(nrZones, "0") +
WallNumberGenerator.PaddLeft(countRow, "0") + WallNumberGenerator.PaddLeft(countColumn, "0");
countColumn++;
}
countRow++;
countColumn = 1;
}
loopcount++;
countRow = 1;
}
return dt;
}
labjac
Continue reading...
Probably going to hit myself with the answer, but for some reason I cannot access the index of the declared Array.
I've create a Array of int[] and passed it back from a method with Array declared.
But normally I can access the int[x] with x, but Array doesn't seem to work the same way.
private DataTable GenerateVisualLocations(LocationSymbols Locationsymbol)
{
int nrArea = Locationsymbol.NrArea();
int nrZones = Locationsymbol.NrZones();
int nrRows = Locationsymbol.NrRows();
int nrColumns = Locationsymbol.NrColumns();
Array zoneSplit = Locationsymbol.ZoneSplit();
DataTable dt = new DataTable();
int countRow = 1;
int countColumn = 1;
int loopcount = 1;
int loopQty = nrRows * nrColumns;
dt = TableMatrix.CreateSetTableMatrix("VisualDataTable", nrColumns, nrRows);
while (loopcount <= loopQty)
{
while (countRow <= nrRows)
{
while (countColumn <= nrColumns)
{
while (countColumn < zoneSplit[countColumn]) "?????"
{
//Still to be implemented
}
dt.Rows[countRow-1][countColumn] = WallNumberGenerator.PaddLeft(nrArea, "0") + WallNumberGenerator.PaddLeft(nrZones, "0") +
WallNumberGenerator.PaddLeft(countRow, "0") + WallNumberGenerator.PaddLeft(countColumn, "0");
countColumn++;
}
countRow++;
countColumn = 1;
}
loopcount++;
countRow = 1;
}
return dt;
}
labjac
Continue reading...