# Synopsis

PDX_MSGT mda_DbgEditEntity(long option, MDA_PTR db_ptr)

# Purpose

Interactively edit the contents of an entity.

# Description

Each field in db_ptr will be displayed along with the current value in the field. The value in each field may be changed by entering a new value at the prompt. The existing value may be left in place by simply typing return at the prompt. In addition to a new value, the following commands may be entered at the prompt:

.IP c 5 Cancels the current edits. The entity is returned to the same state it was in prior to mda_DbgEditEntity being called. This command will print a warning if the entity was already locked before mda_DbgEditEntity was called because in this case the changes will be visible in the locked instance of the entity. .IP d Done with edits. Displays remainder of entity and saves the changes. .IP n Skip to the next field. This command is useful for skipping past arrays which do not need to be edited or where just a few initial elements need to be edited. If the field is an array, the remainder of the array will be displayed. If the field is not an array, this command is equivalent to hitting return. .LP All input is read from stdin. PTR fields may be entered in decimal, hexadecimal, or model:index notation. Use 0 to enter a PTR of MDA_NULL_PTR. Strings must be entered inside of quotes. The maximum length string which can be entered is 255 characters.

# Input

## option

Options (not used)

## db_ptr

Entity to be edited

# Return

MDA error code