>Hi All,
>
>I cannot seem to get a run-time object reference to a VCX form data envronment object. I am adding the DE using the DECLass and DEClassLibrary properties of the form class. Documentation says I should be able to reference THISFORM.DataEnvironment, but VFP complains how there is no object reference for it.
>
>Any clues?
It's too early. The DE instantiates BEFORE the form, so in de.beforeopentables you can't access thisform because form.init hasn't run yet. Once the form exists, you'd be able to do that. Check the "event sequence" subject in help.