Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Caller Datasession ID
Message
From
06/12/2001 13:43:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/12/2001 13:41:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00590674
Message ID:
00590713
Views:
24
>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform