A quick scenario ...
How about having Add/Save command button and
Edit/Reject command button
require to set EditMode .F./.T. as appropriate and then in click of Add/Save =>
*< Add/save button >*
IF !This.NavBar.EditMode
*< Adding >*
DODEFAULT()
ELSE
*< Saving > Or call save procedure *
IF EMPTY(Thisform.frmMaintenance.Page1.bctContainer1.txtCode.Value)
Messagebox("Enter a country code.",0+16+0,E_COMPANYNAME_LOC)
Thisform.frmMaintenance.Page1.bctContainer1.txtCode.SetFocus()
RETURN .F.
ENDIF
regards Ian
DODEFAULT()
ENDIF
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only