Hook Up Tips
Edit Document is typically used in this fashion:
Call the function at least once after calling Edit Line and before End Document.
If errors occur during validation, call the function again to verify that errors have been cleared before calling End Document.
Call this function on the OK Button Clicked event so that, if errors do occur, they are corrected before the user exits the application.