Remove a Thing that is not in use


This toolkit is compatible with SBASIC (SMSQ/E) or compiled SuperBASIC
(Q-Liberator and Turbo). Obviously, the Thing system needs to be present,
as in SMSQ/E or Qdos + hot_rext.


Its annoying when you cant remove a Hotkey Thing. The HOT_REMV command
merely detaches the Thing from the Hotkey, but doesnt actually remove the
Thing itself. If, for example, you are testing a program to use with a
Hotkey, then make changes to it and want to try again, using HOT_REMV is
not going to help: youll just get an error Already Exists! Of course you
could just give your Thing a new name, but the old version will still be
present in memory. THREMV is the solution:

        ERT THREMV(<thing name>)

will get rid of the Thing - providing it is not in use. You may still have
to remove the key association with HOT_REMV afterwards.

There are, of course, many other things you can do with Things, but that
is not for here and now..

Programming notes

This is more of a programming example - or perhaps the beginnings of a
new toolkit collection! - than a full-blown toolkit.  However, I have found
it useful to have such a command in my toolbox.

It is different from the other toolkits in my pick 'n' mix toolkit
collection, in that it uses the SMSQ/E source libraries rather than my
own. This may be the future for my own toolkits too, as it ties better in
with the SMSQ/E paradigm, it may reduce code size and improve performance
and, as it uses tried and tested libraries, may contain fewer bugs.

Software status

The library sources are not included here. They may be found with the
SMSQ/E source files. They are copyright their respective authors.
The remaining code, ie that produced by me, is subject to the DISCLAIMER
and conditions found at

V0.01, pjw, 2020 Mar 22