Ans = 1
If MsgCode EQ SYSMSG_REQUIREERR$ then
// The Required Error message is being requested. This means the user is attempting to save the form without
// populating all of the required fields. Stop the system event handler from firing, otherwise the default
// required field message will display.
Ans = 0
// Put custom message logic here.