D_MAKENEW

SUMMARY
d_makenew(REC[,dbn])
int REC;
int dbn;

ARGUMENTS
REC The type of record to be created

dbn (optional)The number of the database containing the record

DESCRIPTION
This function creates a new record occurrence of type REC.If the record
contains key fields,each must heave been previously set up with calls
to either d_setkey.d_makenew cannot be used to create records that contain
compound keys.For these you must use d_fillnew.The key fields are stored
automatically on the key file and in the record by d_makenew.If any key
field is unique and the data in the field is not unique,status
S_DUPLICATE will be returned and the record will not be created.

───────────────────────────────────────────────────────────────────

CURRENCY CHANGES
curr_rec=database address of new record.

RETURN CODES

3 S_DUPLICATE A duplicate key was specified in the d_setkey
list.

-3 S_INVREC Invalid record type specified.Perhaps you passed
a set or field type instead.

-10 S_KEYREQD A d_setkey was not called on one or more of
the key fields prior to the d_makenew call.

-39 S_COMKEY Record contains compound key.Use d_fillnew
to create records with compound keys.

EXAMPLE


/* create intrsection record */

d_makenew(INTRSECT);
d_connect(KEY_TO_INFO);
d_connect(INFO_TO_KEY);