Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to listen for datasessionid change
Message
From
26/05/2017 06:40:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
25/05/2017 18:07:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01651506
Message ID:
01651524
Views:
90
>>Hi all again...
>>
>>I realized after writing that that I don't want to know if the form's .datasessionID has changed (it never should) but that I need to know when SET("Datasession") returns a new value. So you need some sort of object attached to the screen or hanging about in a global var that is constantly checking SET("datasession") and logging when changed. Or something like that.
>>
>>Any ideas of how to capture this?
>
>I don't think you want to do this in your code, it would effectively be applying a Band-Aid. Seems to be a job for the debugger with a breakpoint set on SET( "DataSession" ). Even with that it's likely to stop a lot when it legitimately changes but you should be able to see the time(s) it does so unexpectedly.

If the framework has a timer active somewhere, every run of .timer() would switch the DS to the DS in which it was created, then back to previous one when it returns. Ditto for skipfor expressions in menus, if they contain code calls.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform