cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

arrray index invalid

fahmed-2
12-Amethyst

arrray index invalid

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

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:fahmed-2)

See if this helps.

 

Success!
Luc

View solution in original post

4 REPLIES 4

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

Hello Terry,

Thank you for your reply. Is this a prime 5.0 file, my version is 4.0.
LucMeekes
23-Emerald III
(To:fahmed-2)

See if this helps.

 

Success!
Luc

fahmed-2
12-Amethyst
(To:LucMeekes)

Thank you

Top Tags