>Use ON SHUTDOWN command. You can just use ON SHUTDOWN QUIT, but it is probably better to call a procedure to clean up before quitting.
Thanks a lot Rick, that was the definite answer; I've used the ON SHUTDOWN command attached to a cleanup routine in FPW 2.6 before, but it never ocurred to me that the 'X' would be related to the shutdown method of the program <g>, anyway, thanks for that.
Have a good one
For every bug fixed, there is a bigger bug not yet discovered.