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