Invalid Program Exception grid

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
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.
 
Back
Top