General information
Category:
The Mere Mortals Framework
>Hello All,
>
>When I set the lAllowDelete property on a form based on cBizObjMaintenanceForm class to .F. the 'Delete' button does not become disabled. The 'Delete' menu bar under the 'File' menu pad does become disabled. Is there something else I need to do to get the 'Delete' command button disabled?
Try putting this in the refresh of the delete button...
IF TYPE("thisform.lAllowDelete") <> "U"
This.Enabled = (thisform.lAllowDelete AND ;
NOT thisform.lReadOnly)
ENDIF
************************
Which I think should be in there already. You can also put similar code into the new button but reference lAllowNew.
BOb
PS: If you add a delete button to the toolbar as I have done, put this code into its refresh:
IF TYPE("_SCREEN.ActiveForm.lAllowDelete") <> "U"
This.SetEnabled(_SCREEN.ActiveForm.lAllowDelete AND ;
NOT _SCREEN.ActiveForm.lReadOnly)
ENDIF
Previous
Next
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