>>>If you set DataEnvironment.AutoOpenTables property to .T. then you don't have to call OpenTables, it'll be called automatically at proper time.
>>>
>
>>I have tried that, and it's the same error.
>
>Sorry, I didn't pay enough attention to the following part:
>>
>I have made aForm class with CDELoader member object on it with Init method which contains code for creating DataEnvironment class which I have created in separate .PRG program.
>>
>The AutoOpenTables works only for form's native DataEnvironment or for custom DataEnvironment that is attached to the form by means of Form.DEClass and Form.DEClassLibrary properties (new properties in VFP8).
>
>If you are using VFP8 then use Form.DEClass and Form.DEClassLibrary properties instead of CDELoader object. If you are using VFP7 and earlier, you have to bind controls manually in code after OpenTables has been called.
>
>Thanks,
>Aleksey.
I am using VFP7 and I have solved problem. I have managed to re-order instancing of objects in form, so that CDELoader is now instancing first and now there is no problem with DE.
Thanks for your help!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only