System Command WSID: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:
:WAS CLEAR WS<br/>
:WAS CLEAR WS<br/>
</code>
</code>
The equivalent System Function to allow a function to retrieve the workspace name is [[System Function WSID|{quad}WSID]].


{{Commands}}
{{Commands}}

Revision as of 20:55, 27 February 2013

)WSID - Name the current workspace

When you begin using the APL interpreter, the Session Manager presents you with a blank screen, and your workspace has a blank name, it's known as a CLEAR WS. In order to be able to save your workspace, you must give it a name. You can do this without saving the workspace, by issuing a )WSID command followed by the workspace name. You can also name the workspace by doing the same thing with the )SAVE command.

Issuing the )WSID command without an argument lists the current name of the workspace. Otherwise it changes the name of the workspace to the argument.

The command works like this:

      )WSID
IS CLEAR WS
      )WSID big
WAS CLEAR WS

The equivalent System Function to allow a function to retrieve the workspace name is ⎕WSID.

System Commands (not case sensitive)
)CLEAR )CLOSE )COPY )DROP )EDIT )ERASE )EXIT )FNS )FOP )FOPS
)IN )INASCII )LIB )LOAD )NEWTAB )NMS )OFF )OPEN )OPS )OUT
)RESET )SAVE )SI )SIC )SINL )SYMB )ULIB )VARS )XLOAD )WSID