Synopsis
PDX_MSGT mda_WriteOrigDbptr(long option, MDA_PTR db_ptr, MDA_PTR orig_db_ptr)
Purpose
Writes original database pointer for an entity.
Description
The original (or predecessor) database pointer for db_ptr will be set to orig_db_ptr. If the MDA_NO_CHECK option is not specified, the pointer will only be set if the value returned from mda_ReadOrigDbptr is the same as db_ptr (i.e. this is an original entity). If the MDA_NO_CHECK option is specified then the pointer will always be set. See the mda_intro man page for more information about entity predecessors.
Input
option
MDA_NO_CHECK
If specified then orig_db_ptr will always be stored as the original database pointer for db_ptr. By default, the original database pointer is only set if db_ptr is an original entity
db_ptr
Entity whose original database pointer is to be set
orig_db_ptr
Pointer to make be the original database pointer for db_ptr.
Return
MDA error code