Andy, Is it the objects in the container that are expecting a cursor to be there? I assume so and that they are probably bound in some way to the cursor - correct?
If so then manually Code equivalent of the init() into a container method MyInit() which will contain manual bindings to the base cursor. Then call this method once the cursor is there and when you are ready. Alternatively can you not create a dummy cursor with no data in the Load() event of the form? That way the init() of the objects will work correctly. Then populate the cursor with the data of your choice. Dont forget to refresh the controls/objects manually as sometimes VFP won't realise that the underlying data has been changed. Dave Crozier The secret to staying young is to live honestly, eat slowly, and to lie about your age -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Davies Sent: 15 November 2006 12:53 To: [email protected] Subject: delay init hi, I have a container** on page2 [of a pageframe on a form] which expects a cursor to be open when init() is run, but the cursor isn't created until the user has filled in some parms on page1. Is there any way I can disable the container.init? I have tried setting enabled = F for the container and for the page I thought about removing the container and adding it at runtime with newobject() but it is convenient to position/ size it at design time. thanks ** it's actually a variation on Les Pinter's 'multiline grid'. Andrew Davies MBCS CITP - AndyD 8-)# ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. Please contact [EMAIL PROTECTED] with any queries. ********************************************************************** [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

