Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown member obizobj error
Message
 
À
25/06/1998 12:59:49
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00111620
Message ID:
00111773
Vues:
14
Richard,

>I'm building a test form based from the cbizobjform class i followed the CodeBook for MereMortals 2 on creating Business Objects. The problem occurs when i suspend it, and it is in the Activate event of of the form and the statements was:
>
>loSelect = CREATEOBJECT('CSelect',this.oBizObj.GetAlias())

What is the error message that you're getting? Have you added a business object to this form yet?

In this particular line of code, CREATEOBJECT is trying to instantiate an instance of the CSelect class which should work fine. However, the second parameter:

This.oBizObj.GetAlias()

is trying to get the name of the InitialSelectedAlias from the form's primary business object. I suspect this is where the source of your problem lies. If you have not added a business object to the form, the oBizObj property never gets set.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform