Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LAllowDelete property & cBizObjMaintenanceForm
Message
De
18/08/1998 09:52:56
 
 
À
17/08/1998 21:53:34
George Simon
GS Data Technologies, LLC
Cincinnati, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00127629
Message ID:
00127712
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform