Antonio, If I may make a suggestion, TDatabase doesn't have an End() method. Yes, I know it has a Close() method, and that is consistent with the CLOSE statement. However, as an object, the Close() method name violates the polymorphism concept. Most of the other classes have an End() ...