Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Jump Start guide page 15
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00462545
Message ID:
00464474
Views:
14
Ken,

>I have done that too. I dropped the StaffObj from the ABizness library onto my form's list page, changed it's name and from the format menu "send to back" ( I confirmed that this happened on the form). If you have any other suggestions, pls respond, if not I will just drop it and move on.>

The "ControlSource" error is caused by the cursor.field specified in the ControlSource property not being present when the user interface control instantiates. The question is, why doesn't this cursor.field exist at this time in your form?

To help debug this problem, I recommend setting a breakpoint in the business object's PostInitHook() method. You should hit this breakpoint *before* the controlsource error appears. If you see the error first, then the business object is instantiating *after* the UI control.

If you hit your breakpoint first, go to the VFP command window and type SET. This launches the data session window. Make sure the business object has loaded the cursor you have specified in the ControlSource. If it *hasn't*, close the application and open the business object. Right-click on the business object and select "Builder" from the shortcut menu. On the first page of the Builder pageframe, make sure the cursor you expect is specified for the business object's data environment.

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
Next
Reply
Map
View

Click here to load this message in the networking platform