Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LAllowDelete property & cBizObjMaintenanceForm
Message
From
18/08/1998 09:52:56
 
 
To
17/08/1998 21:53:34
George Simon
GS Data Technologies, LLC
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00127629
Message ID:
00127712
Views:
28
>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
Map
View

Click here to load this message in the networking platform