ade_oddelrecord

Land Desktop Development ARX CPP SDK

Up a level
ade_oddelrecord
 
 

Deletes a record.

int

ade_oddelrecord(

ads_name ename,

char* table,

int recnum);

Returns RTNORM or an error code.

ename The AutoCAD entity name of the object to which the record is attached.
table The name of the table to which the record belongs, up to 25 characters long. Must be unique, contain no spaces, and start with a character.
recnum The record number. The number of the first record is 0.

The function deletes the record from the object. It deletes the set of object data defined by the table and attached to the object. This deletes the record from the table as well as the data contained in the record.

The record number is necessary because more than one record from the same table can be attached to an object. Use ade_odrecordqty to find how many records of a given table are attached.