Bill,
Would changing the code in cmdOKMaint.UIEnable to the following help?
LPARAMETERS lEnable
IF PEMSTATUS(ThisForm, 'lAllowSave', 5)
IF lEnable
IF This.lReadOnly AND ThisForm.lAllowSave
ThisForm.lAllowSave = .F.
ELSE
IF !This.lReadOnly AND !ThisForm.lAllowSave
ThisForm.lAllowSave = .T.
ENDIF
ENDIF
ENDIF
ENDIF
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com