Page 1 of 1

TDatabase End() method

PostPosted: Sat Jul 15, 2017 12:54 am
by James Bott
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() method.

So if you just add this line:

METHOD End() inline ::Close()

We can then use oDBF:End() syntax and it won't break any existing code.

I notice that you have done this in other classes that normally use "destroy" to end them.

Regards,
James

PS: Of course, I am asking because I often try to use the End() method and it crashes.

Re: TDatabase End() method

PostPosted: Sat Jul 15, 2017 1:54 pm
by nageswaragunupudi
Done

Re: TDatabase End() method

PostPosted: Sat Jul 15, 2017 3:46 pm
by James Bott
Thank you Nages.

James