Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CmdDelete.Enabled
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00918238
Message ID:
00918484
Views:
8
Jose,

How about setting the Visible property to .f.?

HTH

-Dan

>Hi, I have a Maintenance Form that is not used to maintain a Database. Let me try to explain. The Form is used only for browsing the records. The end user can only view the records, but cannot Add, Delete or Change. I set the Enabled property of cmdNew and cmdDelete to .F., but cmdDelete is always being Enabled.
>In cBizObjMaintenanceForm.Activate Method there is:
>
>IF ThisForm.oBizObj = ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj
>	This.SetGridEnabledStatus(!ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj.lNoRecords)
>ENDIF
>
>And in SetGridEnabledStatus:
>
>LPARAMETERS tlEnabled
>
>This.pgfBizObj.Page1.cmdDelete.Enabled = tlEnabled
>This.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.Enabled = tlEnabled
>
>That´s why cmdDelete is always Enabled, because there are records in cGridList1.
>What should I do?
>
>Regards,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform