Tech Off Post

Single Post Permalink

View Thread: Index was outside the bounds of the array.
  • User profile image
    ccatto

    Hey Now Mancroft,

     

    Index was outside the bounds of the array.

     

    1. What does it mean?
         Array & Data Set values may not be the same
    2. What is causing it?
         IndexOutOfRangeException
          Stack Trace:
          [IndexOutOfRangeException: Index was outside the bounds of the array.]
    3. If I get it (which I am) how can I force the program to continue running and not crash?
         correct the data
         dr["Item_Four"] = xrow.ItemArray[4];

     

    Thx 4 the info on the other comments people


    Catto