Clearing variable on /n... command: When a user exits the transaction from command bar with "/nTCODE", is there a smart way to trigger the "on enter" event? I would need it to clear some variables. I tried this:

on  "/n*"   process="inputscripts\clear.txt"

The InputScript was triggered correctly but it doesn't let me go to the next transaction.

Enter  "&V[_last_fcode]"
at the end of your InputScript "clear.txt".

A more common approach is to clear the variables in the GuiXT script when the transaction starts, using

if not V[_transactionid=&V[my_transactionid]]
  Set V[my_transactionid] "&V[_transactionid]"

  // clear variables
  Set  ...