Information générale
Catégorie:
Gestionnaire d'écran & Écrans
GREAT TIP!
Glenn
>Hi Nadya,
>
>>I found, that if form has a private DS and in the life of the form we add some object to the screen, the Form's datasession remains open after form is closed...
>
>That's because an object belongs to the datasession it has been created in. As long as the object lives, the datasession won't go away. After a long time I finally found a work around to that problem. Execute the command that adds the object to _SCREEN with _VFP.DoCmd(). This function always operates in the default datasession and therefore all objects created with this function also operate in the default datasession:
>
>_VFP.DoCmd("_SCREEN.AddObject([SomeClass])")
>
>Christof
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement