Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment attached to form as private datasession
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00513773
Message ID:
00514323
Vues:
16
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform