dbfdeleterecord - Forum

Forum Navigation
You need to log in to create posts and topics.

dbfdeleterecord

Hi everyone
In neobookdb 2.3d after "dbfdeleterecord" Action
An empty row is displayed. Please help me.

@s7shanbe

It has been a long time (about a decade) since I worked with the plugin ... but I faintly recall that its underlying (dBase IV) program required a minimum of one record in the database.

 

i

There is more than one record, but after deleting a record a blank row is created in the table

@s7shanbe

There is more than one record, but after deleting a record a blank row is created in the table

I think it just shows a blank row; a record does not exist (until you request the contents of this row to be added, explicitly or implicitly).

You might want to check the number of records in the datatabase before and after the dbfDelete command.

Once a record is deleted, you must use dbfPack.

dbfPack
Purpose: Compress/pack the database and remove space occupied by deleted records. When records are
deleted using dbfDeleteRecord, the physical size of the database file does not decrease. Instead
deleting a record simply marks the record as deleted, but the space occupied by the record
remains in the file. dbfPack removes any records marked as deleted and reduces the size of the
database file.

 

Greetings.