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