Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip of the Day
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00278095
Message ID:
00278168
Vues:
19
As a sample:

I have the modal Print Options form which is called from many other forms with Private Datasession. It uses the Default datasession setting, so it has an access to the calling form datasession and runs the reports from it. But in order to debug this form I have to make it non-modal for the tests and that's where I change its datasession.

*PrintOptionsForm.Init()
IF glDebugMode
SET DATASESSION TO _screen.activeform.datasessionID
ENDIF


>Hi David,
>This is correct, but sometimes I want to keep both forms with Private datasessions.
>
>>Nick,
>>
>>If you set the child form DS to Default it'll open up in the parent form's DS.
>>
>>>One of the things I use it for - to get the calling form datasession ID if I need to.
>>>
>>>lnDatasessionId = _screen.activeform.DataSessionId
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform