FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TDatabase End() method
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
TDatabase End() method
Posted: Sat Jul 15, 2017 12:54 AM

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.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TDatabase End() method
Posted: Sat Jul 15, 2017 01:54 PM

Done

Regards



G. N. Rao.

Hyderabad, India
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: TDatabase End() method
Posted: Sat Jul 15, 2017 03:46 PM

Thank you Nages.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion