I have a function that sees which items have been selected from a grid and then automatically assigns those items to input fields.
The grid can have up to 20 selectable items, unfortunately the function performing the assignment is generating a invalid program exception.
The function deals with the grid in four segments, check items 1 to 5, then 6 to 10, then 11 to 15 and finally 16 to 20.
At the moment the function has 31,000 lines of code, is there anyway to make this code more efficient or set it up in such a way to avoid the invalid program exception error.
Any advice is greatly appreciated.
The grid can have up to 20 selectable items, unfortunately the function performing the assignment is generating a invalid program exception.
The function deals with the grid in four segments, check items 1 to 5, then 6 to 10, then 11 to 15 and finally 16 to 20.
At the moment the function has 31,000 lines of code, is there anyway to make this code more efficient or set it up in such a way to avoid the invalid program exception error.
Any advice is greatly appreciated.