|
Purpose |
Copies the fields of a child record to the fields of its parent record. This function is regarded as obsolete in 4.500 | |
|
Syntax |
int copy2parent(child_rec, par_rec, role) | |
|
Parameters |
short DP4P child_rec |
Pointer to L field of child record |
|
|
short DP4P par_rec |
Pointer to L field of parent record |
|
|
const char DP4P role |
Role of index |
|
Description |
The function copy2parent() copies the key fields of the given parent's child index from the child record to the parent record. This involves a call to the database manager to perform the field transcriptions so it is inefficient particularly in networking applications. Normally the transfer is explicitly done in the program. The function has the advantage that it remains valid if the database parent's child index details are changed. | |
|
Return values |
Returns FALSE if the key fields are already the same, otherwise TRUE | |
|
See also |
||