Navigation: ABC Library Reference > BrowseClass > BrowseClass Properties >====== EnterAction (edit-in-place action on enter key) ====== | |
EnterAction | BYTE |
The EnterAction property indicates the action to take when the end user presses the ENTER key during an edit-in-place process.There are two types of actions that EnterAction controls:
what to do with any changes (default, save, abandon, or prompt),
what mode to use next (continue editing or revert to non-edit mode).
The specified actions are implemented by the Ask method. Set the actions by assigning, adding, or subtracting the following EQUATEd values to ArrowAction. The following EQUATEs are in ABBROWSE.INC:
ITEMIZE,PRE(EIPAction)
Default EQUATE(0) !save according to the Ask method
Always EQUATE(1) !always save the changes
Never EQUATE(2) !never save the changes
Prompted EQUATE(4) !ask whether to save the changes
Remain EQUATE(8) !continue editing
END
Example:
BRW1.EnterAction = EIPAction:Prompted !ask to save changes
BRW1.EnterAction = EIPAction:Prompted+EIPAction:Remain !ask to save, keep editing
See Also: Ask