Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent datasession switching on global object ca
Message
From
12/07/2005 15:49:53
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01031168
Message ID:
01031867
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform