For the observant reader: I withdrew a recent posting on TCExit because I misdiagnosed a problem. Thanks for pointing it out. Here is why:
From the helpfile:
_TCTABS returns the current number of Take Command tab windows (or 0 if TCC is not running in Take Command).
It appears that _TCTABS (and _TCTAB) is always zero during the execution of TCExit. Other internal variables still hold valid values. Maybe the console is considered to be closed already.
I was hoping to use this value to trigger some action on closing the *last* TC console. But now I'm out of luck because I can't discriminate between "last console" and "not running in TC".
Could the variable be decremented after TCExit?
If not, how could I keep track of the number of consoles?
Regards, DJ
From the helpfile:
_TCTABS returns the current number of Take Command tab windows (or 0 if TCC is not running in Take Command).
It appears that _TCTABS (and _TCTAB) is always zero during the execution of TCExit. Other internal variables still hold valid values. Maybe the console is considered to be closed already.
I was hoping to use this value to trigger some action on closing the *last* TC console. But now I'm out of luck because I can't discriminate between "last console" and "not running in TC".
Could the variable be decremented after TCExit?
If not, how could I keep track of the number of consoles?
Regards, DJ