Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CListObjEdit still unresolved
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00859237
Message ID:
00859314
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform