>>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.
**************8
I don't think you need to use a dataenvironment class like this. I now put "RETURN .F." in the init of the dataenvironment so that it is not created after LOAD and I do all the file opening in a Custom class which is in a prg as many have suggested. It works fine and there is no "dataenvironment". Does anyone know of an advantage of using a dataenvironment class?
Dr. Ken A. McGinnis
Healthcare software design