Hi Geoff,
I created a test form, added a free table to DE, droped a button on the form and run. The Init of the cursor1 fired when it suppouse to. Here's the event trace from the debbugger
56438.247, form.dataenvironment.BeforeOpenTables()
56438.247, form1.Load()
56438.247, form1.dataenvironment.cursor1.Init()
56438.247, form1.dataenvironment.Init()
56438.257, form1.command1.Init()
56438.257, form1.Init()
56438.257, form1.Activate()
>This is definitely a bug.
>
>I can create a test form which loads fine. Then I add a command button and the DataEnvironment.Cursor1.Init() dont fire until after all the other init events.
>
>Geoff
>
>>Hi
>>
>>I have some forms which are not firing the DataEnvironment.Cursor1.Init() event until after all the controls on the form have had there init() event raised.
>>
>>AutoOpenTables = .T.
>>
--sb--