In the invoice entry form I described in “Cell highlight obscured by graphic element” I have a procedure that lets me remove an entire line item row by causing the line item row below it to scroll up to fill the line I want to remove, iteratively until all the lines below have moved up. Depending on which line in the list of line items I am trying to remove, the procedure loops as many times as needed depending on how many lines exist below it. This loop calls an internal subroutine that deals with each individual line item field to cause the move. The code is basically like this for each of the 4 line item fields involved:
Field "Order Qty"+NextIndx CopyCell Field "Order Qty"+ThisIndx PasteCell
The local variable values NextIndex and ThisIndex represent the line item number of the next field down and the current field, respectively, with values set in the calling loop. When I run this I get a series of blank dialog boxes with only an OK button. Running in debug mode, I find that the “error” happens each time PasteCell is called. Interestingly enough, the procedure executes my code correctly (including PasteCell), and continues to run, so it’s not exactly an “error” but it requires me to click OK 4 times for each line that has to be moved.
This code is carried over from Pan 6, where it worked without issues.