Keywords:
<>I want to be able to do the equivalent of )RESET from inside a
<program.
<
<Unless you have saved your WS with a suspension (normally considered
<bad practice), why not []XLOAD []WSID?
<
<This will achieve the desired effect unless you have edited an object
<between the suspension and the []XLOAD. If that's the problem, simply
<leave the object in the editor until after the []XLOAD -- no extra
<keystrokes.
I don't know if this will work in APL+WIN, but I have a function in APL+PC
that might be modified to do something similar. My 'RESET' function
assigns a whole string of commands to the keyboard buffer and then sets
them off. It was used to clear the symbol table in a workspace, and after
determining the WSID, executes the following sequence:
)save
)clear
)symbols 1024
)copy WSID
)wsid WSID
#LX<-'StartString' <I use a standard name for all my WS's>
)save
Ordinarily, there would be no way to do all of this under program control,
but this dodge works very nicely. I don't know if the current version of
APL+WIN has the keyboard buffer trick available. I think I used #INBUF,
and that system variable was available in Ver. 1.0.
Doug White