Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to listen for datasessionid change
Message
De
25/05/2017 18:07:31
 
 
À
25/05/2017 17:00:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01651506
Message ID:
01651509
Vues:
76
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform