Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to listen for datasessionid change
Message
From
25/05/2017 18:07:31
 
 
To
25/05/2017 17:00:50
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:
01651509
Views:
77
>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.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform