>>IF !THISFORM.buttonset1.editmode >> THISFORM.text8.ENABLED = .T. >>ELSE >> THISFORM.text8.ENABLED = .F. >>ENDIF >>>>buttoneset1 is the usual name for the command group of buttons that control add, save, delete and exit, etc. editmode is a property on that command group, that the parent code looks at to deturmine the setting for the form's objects.