# Synopsis

PDX_MSGT mda_SetOrigDbptr(long option, void *ent, MDA_PTR db_ptr)

# Purpose

Set original database pointer for an entity.

# Description

The original (or predecessor) database pointer for the entity ent will be set to db_ptr. If the MDA_NO_CHECK option is not specified, the pointer will only be set if the value returned from mda_GetOrigDbptr is the same as the value returned from mda_GetDbptr (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 db_ptr will always be stored as the original database pointer for ent. By default, the original database pointer is only set if ent is an original entity

## ent

Entity whose original database pointer is to be set

## db_ptr

Pointer to make be the original database pointer for ent.

# Return

MDA error code