SilverScreen Solid Modeler

bt_erase

bt_erase

Previous topic Next topic  

bt_erase

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

Antiquated

 

int bt_erase(int handle, int record_number)

 

int handle;                // an open b-tree database handle

int record_number;        // sequential index of record to erase

 

 




Synopsis

#include "silver.h"

 

The bt_erase function removes a record from the b-tree database data file specified by handle . The record is specified by record_number .

 

 

Parameters

handle is an open b-tree database handle, as obtained by a call to bt_open .

 

record_number is a sequential record number.

 

 

Return Value

bt_erase returns 1 if the delection was successful, and 0 otherwise.

 

 

Comments

The btree-family of functions is not available in SilverSharp, except by means of P/Invoke.

 

See Also

bt_delete

 

 

Example

C / C++ Code

 

int handle;

 int record;

 

 if ( record = bt_find( handle, "George" ) )

    {

    bt_delete( handle );

    bt_erase( handle, record );

    }