Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to listen for datasessionid change
Message
De
26/05/2017 06:40:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
25/05/2017 18:07:31
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
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:
01651524
Vues:
92
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform