>>Cetin,
>>
>>This is exactly the response I was afraid of hearing :(
>>I am porting a legacy application which had some procedures/functions that I am trying to put into classes. Ok, the problems are arriving and we have to face them ;)
>>Thanks!
>
>Oh if you mean an old application was calling a prg and you need to know caller form's datasessionid than you could use program(0) to identify the caller. If its instance is single and formname is unique you could get the reference from _Vfp.objects collection (too much luck for a class - maybe _screen.activeform might be a shortcut). However if caller is also setting private sessions within its form than no chance sounds to be left other tha passing sessionid :(
>Cetin
BTW if the object isn't changing datasession just before call then you're already in the same session and could get with set('datasessionid').
Cetin