I am trying to pass in an arraylist and the index value for it. When I go to reference the array with the variable for the index, I get an error, doesn't have an indexer. But when I debug and use a '0' instead it works perfectly. Here is the code:
public void AssignVacancies(DateTime vStartDate, DateTime vEndDate, ArrayList vCurrentAssessorList, int vArrayIndex)
{
DAEventList.SelectCommand.Parameters["@pID"].Value = vCurrentAssessorList[vArrayIndex].CommandID;
DAEventList.SelectCommand.Parameters["@pPrecedence"].Value = vCurrentAssessorList[vArrayIndex].Precedence;
Any ideas?
public void AssignVacancies(DateTime vStartDate, DateTime vEndDate, ArrayList vCurrentAssessorList, int vArrayIndex)
{
DAEventList.SelectCommand.Parameters["@pID"].Value = vCurrentAssessorList[vArrayIndex].CommandID;
DAEventList.SelectCommand.Parameters["@pPrecedence"].Value = vCurrentAssessorList[vArrayIndex].Precedence;
Any ideas?