OK, maybe I missed it. No, there is code in the exit methodthat closes the table. Maybe, there is an error in the test. Insert a set step on. The method never gets executed! I have used this way for years for other forms, but in this form, the exit method just does not get executed.
I have scanned the source code for odd characters. There are none.
1. Copy the code out of the method to a plain text file. Delete all leading and trailing spaces. Save the file as plain text and close the file. Then, in the Properties window, right-click the method and choose "Reset to default". Then open the text file, copy the code from it, and paste it back into the method. That usually works for me, but if it doesn't:
2. A.
If it's a program class, delete the .fxp files related to it and its superclasses and recompile them.
2. B.
If it's an .scx or a .vcx class, BACK UP the file and delete the contents of the Objcode field in the subclass, and recompile the object.
Ken Dibble www.stic-cil.org