>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement