Data Access Worldwide Knowledge Base
Article ID 2278 Article Title ERROR: "Cannot locate insertion point" when adding components Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2278 KBase Category VDF12 Date Created 12/12/2006 Last Edit Date 12/14/2006
Article Text
QUESTION:
I created a new view and an error box popped up telling "Cannot locate insertion point. Unable to add component". What does this mean and how do I get around it?
ANSWER:
The error you are seeing means that the Studio is not able to find a client area object in the MDI main panel object. Perhaps it cannot even find the MDI main panel object. You can only create views for MDI styled programs. MDI Style applications have a Panel and a ClientArea object. Both the clientarea and the panel object classes may be subclassed.
When your program structure is as follows:
Object oMain is A Panel
Object oClientArea Is A ClientArea
End_Object
End_Object
The Studio can add components.
When the program structure is as follows:
Object oMain is A Panel
End_Object
The Studio CANNOT add components.
Contributed By:
Vincent Oorsprong
Company: Data Access Worldwide
email: vincent.oorsprong@dataaccess.eu
Web Site: http://www.dataaccess.eu
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.