DtvLong dal_iwf_dal_exi_edt (par)

Finishes the current mask-edit-state. Before that the action passed as parameter is executed.

Input Parameters Significance
char *par control parameter for action to be executed:
"S" = Store (finishes the Update or Insert mode of MAS state and stores the changes in the database)
"F" = Fetch (finishes the Query mode of MAS state and executes a query in the database)
"Q" = Quit (finishes the MAS state and restores the state before entering MAS state)
"E" = Exit (finishes MAS state)

Output Parameters Significance
none -

Return Code Significance
0 MAS state could not be finished
1 all ok, action correctly executed

Can be called as On_Select userexit in edit menus/button areas or as On_Event userexit in Mask-Edit state.

If the actions "S", "F", and "Q" our passed, the return code controls the DataView default behaviour. The MAS state may only be left with "E" if you programmed the entry into MAS state yourself. The programmer is then responsible for all required actions after leaving MAS state (e.g. regarding selections, locking, storing, etc...).