3] The form should look like the following once the Add button is selected/pushed.

3] We realize that a record has not been added to the database yet. If the user cancels this new insertion, there is no need to add a record that we would have to delete.

Cancel The Add

1] Should the user select the Cancel button during the add procedure, we simply re-scatter the current record and return to the normal mode of the form. Since no record has been added, the read/write pointer has not moved. It will be less confusing for the user if we can use the same Cancel button for both the Add and Edit functionality; we shall do so.
Save - Accept The Add
1] Gather Memvar Memo is the reciprocal operation of Scatter Memvar Memo.Gather takes all 9 of the local memory variables and reloads them into the current record.
2] The Save procedure shall
  1. Add a new record if in the Add Mode
  2. Gather the local information into the current record
  3. Return To The Normal Mode
  4. Refresh the form
3] Check out the Add and make sure that both the cancel and save functionality work properly!
Procedure Edit - Must Lock The Record
1] The Edit procedure shall
  1. Normally, lock will put display a message - attempting to lock in the status bar. This is not so obvious to the user. We shall Set Reprocess to 0 Seconds to prevent this loop.
  2. Attempt to lock the record. LockStatus will be true if successful; otherwise false.
  3. If unsuccessful, tell the user.
  4. If successful, enter the EditMode and enable the user to make changes to the copy of the record.
2] The Cancel procedure will need to be altered to terminate the Edit functionality. (See Below!)
3] The Save procedure will also need to be altered to terminate the Edit functionality. (See Below!)
May be accessed through URL: http://www.cs.trinity.edu/~thicks
May also be accessed through URL: http://carme.cs.trinity.edu
This Document May Not Be Printed or Reproduced Without Written Permission.
2003 Copyright : Dr. Thomas E. Hicks
Permission granted : Professional Educators & College Students may print one copy of this page!
Dr. Thomas E. Hicks
Computer Science Department
Trinity University

'Dr. Web'