3.3.11 U_STORED

If the add or update is successful, then the user edit routine is called with the type parameter set to U_STORED. All the other parameters are set to NULL. If the user edit routine is updating balances in other RMSfiles, that should be done at this time. Sread can still be used to fetch fields from the current record. Swrite can also be used, but any changes made to the record by swrite will not be stored in the RMSfile. If the user edit routine returns an error message from the U_STORED call, the add or update is undone. If a record was added after the U_PREPARE call, that record is deleted. If a record was updated after the U_PREPARE call, the update is undone. If no error message is returned, the STORE function is completed and the next form is displayed.