Hi,
Im getting an error and i have no idea what it means.Hoping someone could shed some light on it for me.Thank you
Cannot apply indexing with [] to an expression of type 'int'
Here is the code
public void FindMaxValue()
{
objDataTable = objDataSet.Tables["tblScore"];
foreach (int drowRow in objDataTable.Rows)
{
if (drowRow["Total"] > decMaxValve)
{
decMaxValve = drowRow["Total"];
}
}
decXScale = ImageWidth / (objDataTable.Rows.Count - 1);
decYScale = ImageHeight / decMaxValve;
}
Im getting an error and i have no idea what it means.Hoping someone could shed some light on it for me.Thank you
Cannot apply indexing with [] to an expression of type 'int'
Here is the code
public void FindMaxValue()
{
objDataTable = objDataSet.Tables["tblScore"];
foreach (int drowRow in objDataTable.Rows)
{
if (drowRow["Total"] > decMaxValve)
{
decMaxValve = drowRow["Total"];
}
}
decXScale = ImageWidth / (objDataTable.Rows.Count - 1);
decYScale = ImageHeight / decMaxValve;
}