>>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.