Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid on bizObjMaintenanceForm not enabling
Message
 
To
14/04/2001 11:28:36
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00495540
Message ID:
00496496
Views:
8
Larry,

You can call the form's SetGridEnabledStatus() with a logical value indicating whether the grid should be enabled or disabled.

Note that the upcoming version of the Framework does this for you automatically. If you prefer, you can place the following code in CBizObjMaintenanceForm.Requery() and you'll be in line with the upcoming version:

LPARAMETERS tldonotrequerychildren,tldonotrefreshform

LOCAL lnRetVal

lnRetVal = DODEFAULT(tldonotrequerychildren,tldonotrefreshform)

IF ThisForm.oBizObj = ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj
This.SetGridEnabledStatus(!ThisForm.pgfBizObj.Page1.CListOneToManyObj1.cGridList1.oBizObj.lNoRecords)
ENDIF

RETURN lnRetVal

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform