Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment attached to form as private datasession
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00513773
Message ID:
00514323
Views:
15
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform