What does mean this Error message?
Error Message
Cannot apply indexing with [] to an expression of type 'type'
i hawe variable that i use in FOR LOOP, like this;
Array myPozition;
int32 myAdd;
Int32 tempFor1 = pozicije.GetUpperBound(0);
for (i = 0; i <= tempFor1; i++)
{
myAdd = Convert.ToInt32(myPozition);
oCmd.Parameters["@advId"].Value = myAdd;
oCmd.Parameters["@pozition"].Value = i;
oCmd.ExecuteNonQuery();
}
...
Error Message
Cannot apply indexing with [] to an expression of type 'type'
i hawe variable that i use in FOR LOOP, like this;
Array myPozition;
int32 myAdd;
Int32 tempFor1 = pozicije.GetUpperBound(0);
for (i = 0; i <= tempFor1; i++)
{
myAdd = Convert.ToInt32(myPozition);
oCmd.Parameters["@advId"].Value = myAdd;
oCmd.Parameters["@pozition"].Value = i;
oCmd.ExecuteNonQuery();
}
...