>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