About Level 3 ass1 , Index was outside the bounds of the array

image


Hello everyone,
Today, I encountered a problem in the process of the exam. As shown in the figure, when the program finishes running, it will remind me that the array is out of the maximum range. I try to change the 0 in the figure to 1, but it does not help, I read the forum. Other posts, debugging at the same time, but the results are the same, I hope everyone can help me.
Greatful!!!

GetTransactionData.xaml (7.8 KB)

This is the source!!!

@WangJidong if TransactionNumber is 0 you need to replace ‘<=’ with ‘<’ in GetTransactionData and also in place of dt_WorkItems(in_TransactionNumber-1) put dt_WorkItems(in_TransactionNumber)

1 Like

Thank You

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.