C
ChrisB
Hello:
I am attempting to execute the following code which was created with Visual
Studio 2003:
SqlParameter[] DateParameters = new SqlParameter[5];
DateParameters[0] = new SqlParameter("@ConsumerDateID", _dateID);
DateParameters[1] = new SqlParameter("@ConsumerID", Consumer.ConsumerID);
DateParameters[2] = new SqlParameter("@ConsumerDateTypeID", _typeID);
DateParameters[3] = new SqlParameter("@Value", _value);
DateParameters[4] = new SqlParameter("@Index", _index);
I am receiving the following error each time the runtime attempts to store
the DateParameter[3] value (error thrown before next line even reached):
"Index (zero based) must be greater than or equal to zero and less than the
size of the argument list."
I have tried closing and recompiling my code on several occasions, and
altering the size of the array, but cannot get this to execute properly.
Is there an error in my code? Is there some type of IDE or compilation
issue that might be causing this?
Thanks for any insight!
Chris
I am attempting to execute the following code which was created with Visual
Studio 2003:
SqlParameter[] DateParameters = new SqlParameter[5];
DateParameters[0] = new SqlParameter("@ConsumerDateID", _dateID);
DateParameters[1] = new SqlParameter("@ConsumerID", Consumer.ConsumerID);
DateParameters[2] = new SqlParameter("@ConsumerDateTypeID", _typeID);
DateParameters[3] = new SqlParameter("@Value", _value);
DateParameters[4] = new SqlParameter("@Index", _index);
I am receiving the following error each time the runtime attempts to store
the DateParameter[3] value (error thrown before next line even reached):
"Index (zero based) must be greater than or equal to zero and less than the
size of the argument list."
I have tried closing and recompiling my code on several occasions, and
altering the size of the array, but cannot get this to execute properly.
Is there an error in my code? Is there some type of IDE or compilation
issue that might be causing this?
Thanks for any insight!
Chris