Skip to main content
14-Alexandrite
April 9, 2019
Solved

arrray index invalid

  • April 9, 2019
  • 1 reply
  • 2262 views

Hello,

 

I am trying to assign the last row of a vector of values to my result. I want to start assigning from the second column and assign that value in the first column of a new variable but it is telling me that array index is invalid. Please help me to solve it.

 

 

Thank you,

Faisal

Best answer by LucMeekes

See if this helps.

 

Success!
Luc

1 reply

21-Topaz II
April 10, 2019

Hi Faisal,

 

You iterate to the last element in the counter "i",  You cannot index to :"i +1" past the last element,

Simply adjust the counter "i".  See enclosed.

 

Regards

Terry

fahmed-214-AlexandriteAuthor
14-Alexandrite
April 10, 2019
Hello Terry,

Thank you for your reply. Is this a prime 5.0 file, my version is 4.0.
LucMeekes23-Emerald IVAnswer
23-Emerald IV
April 10, 2019

See if this helps.

 

Success!
Luc