Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown member obizobj error
Message
 
To
25/06/1998 12:59:49
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00111620
Message ID:
00111773
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform