>how about I create the dataenvironment using coding (.prg) ?
>
Why would you want to do that?
>e.g.
>
>oDe = createobject('dataenvironment')
>
>how can i attach it to a form ?
>
>in form.load
>thisform.dataenvironment = oDe
>
>is this correct ?
>
>thanks
No, you can't do it in the Load because the form doesn't exist yet. You'll need to do it in the Init.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer