FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Reuse Deleted Records
Posts: 105
Joined: Fri Jun 09, 2006 03:27 PM
Reuse Deleted Records
Posted: Thu Sep 13, 2007 02:50 PM

Ok...now that Ive solved all my browse issues (thanks James!!!), Im ready to tackle re-using deleted records to avoid that pesky downtime for packing.

Ive read a few posts but not sure I completely understand....

Right now im just doing the standard oDbf:append()....load()....save()

Can I get some code examples on how to implement finding deleted record, blanking, using Database object?

Thanks!
Greg

Regards,

Greg Gammon
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Reuse Deleted Records
Posted: Thu Sep 13, 2007 05:16 PM

Greg,

Already sent to your email.

Everyone, this is code for selected TData registered users only. The new code is beta-test code right now.

There are actually two new features, 1) automatic deleted record reuse (no more PACKing!) and 2) auto-incrementing primary-key fields. Almost no code changes will be required to implement these new features.

TData is an enhanced database class. For more information about TData go here:

http://ourworld.compuserve.com/homepage ... rogram.htm

Be sure to read the OOP articles too. They show how using database classes can really reduce your code and increase your programming power.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Reuse Deleted Records
Posted: Thu Sep 13, 2007 08:57 PM

Greg and James:

Is my understanding that xHarbour CDX driver already recicles automatically the deleted records.

Saludos

R.F.
Posts: 105
Joined: Fri Jun 09, 2006 03:27 PM
Reuse Deleted Records
Posted: Thu Sep 13, 2007 09:19 PM

Well that would certainly be sweet if that is the case. Are you saying the oDbf:append() automatically seeks deleted records to reuse?

Also...what IS the difference in Harbour and xHarbour (im just using Harbour).

Thanks!
Greg

Regards,

Greg Gammon
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Reuse Deleted Records
Posted: Fri Sep 14, 2007 09:27 AM
RF wrote:Greg and James:

Is my understanding that xHarbour CDX driver already recicles automatically the deleted records.


Don't think so. It would be a serious incompatibility.

EMG

Continue the discussion