I have made a customized lookup form for the itemId which is used from the saleslines in the salesTable form. However when I press ESC on the itemId in the lookup it returns to the salesTable form but an "Invalid range" error is thrown from the QueryBuildRange.addRange method. When debugging the call stack over this method is empty so I don't know why and how it is called (must be from the kernel!).
I have tried debugging the lookup form, but apparently neither canclose or any of the close methods are called when it is closed by ESC. Does anybody know which methods are called when a lookup form is closed by pressing escape, or what could possibly cause this problem?? It is version 4.0, and I suspect it's a kernel error as it doesn't really make any sense as far as I can see. Regards Thomas