Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prevent datasession switching on global object ca
Message
De
12/07/2005 15:49:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
01031168
Message ID:
01031867
Vues:
11
>Hi Andrus,
>
>>causes sometimes error _screen.activeform is not an object
>
>You can use PROGRAM() to get the name of the calling form, then iterate through _SCREEN.Forms to get the reference. To ensure that the names are unique, you could use code like this in the form's Load event:
>
>THIS.Name = SYS(2015)
>
>This won't work with sessions created by session objects, though. With the reference, you can determine the datasession ID and switch to the datasession.

Christof,

It IS simpler to pass SET('datasession') as parameter to my global object.

SET('datasession') returns ALWAYS the same number as got from the calling stack and also from calling session objects, in'nt it ?
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform