Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment Class problem
Message
From
03/05/2003 05:07:04
 
 
To
02/05/2003 14:57:56
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00784061
Message ID:
00784521
Views:
15
>>>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
Map
View

Click here to load this message in the networking platform