Bob,
>I put an instance of cListObjEdit on a pageframe using the built in business object thinking I would keep it simple. I used the builders to set up both the business object and gridlist. When I run the form, I get the following error in the SetButtonEnabledStatus method of the cListObject.
>
>Unknown member OBIZOBJ
>Line 32
>If this.oBizObj.lNoRecords = .T.
>
>What am I missing?
It looks like this.oBizObj has not been initialized. If you look at the Init method of CListObjEdit.CListObj1, you'll see the following code that registers the built-in business object:
DODEFAULT()
IF This.lEnabled
This.Parent.RegisterBizObj(This)
ENDIF
Is it possible that the business object's lEnabled property has been set to False? If not, I recommend setting a breakpoint in this code and stepping through to see why oBizObj is not being initialized properly.
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