System WSID: Difference between revisions
No edit summary |
m (Paul Robinson moved page System Variable WSID to System WSID: Combine )WSID and Quad WSID) |
(No difference)
|
Revision as of 17:25, 26 November 2014
⎕WSID - Set or Retrieve Workspace ID
|
||||
Z is a string. |
⎕WSID←R | sets the name of the workspace to the value of R. |
For a clear WS, ⎕WSID will return null; for a named WS, will return the full file name of the current workspace. NARS2000 will not validate the string passed to ⎕WSID, you must be certain it is a valid file name. A workspace name may include spaces; in fact, you can only insert spaces within the workspace name through the ⎕WSID system variable; the )WSID command will truncate a workspace name at the first space.
This example is from Windows 7:
)wsid
IS CLEAR WS
⎕wsid
)wsid april
WAS CLEAR WS
⎕wsid
C:\Users\Programmer\AppData\Roaming\NARS2000\workspaces\april
)wsid
IS april
⎕wsid←'March'
)wsid
IS March
⎕wsid
C:\Users\Programmer\AppData\Roaming\NARS2000\workspaces\March
⎕wsid←'This is My Workspace'
)wsid
IS This is My Workspace
⎕wsid
C:\Users\Programmer\AppData\Roaming\NARS2000\workspaces\This is My Workspace
)WSID This is mine
WAS This is My Workspace
⎕WSID
C:\Users\Programmer\AppData\Roaming\NARS2000\workspaces\This
)wsid
IS This
System Variables (A value may be assigned to these except for ⎕DM) | |||||||||
---|---|---|---|---|---|---|---|---|---|
⎕ALX | ⎕CT | ⎕DM | ⎕DT | ⎕ELX | ⎕FC | ⎕FEATURE | ⎕FPC | ⎕IC | ⎕IO |
⎕LR | ⎕LX | ⎕PP | ⎕PR | ⎕PW | ⎕RL | ⎕SA | ⎕WSID | ||
Niladic System Functions (a value cannot be assigned to these) | |||||||||
⎕A | ⎕AV | ⎕EM | ⎕ET | ⎕LC | ⎕NNAMES | ⎕NNUMS | ⎕SI | ⎕SYSID | ⎕SYSVER |
⎕T | ⎕TC | ⎕TCBEL | ⎕TCBS | ⎕TCESC | ⎕TCFF | ⎕TCHT | ⎕TCLF | ⎕TCNL | ⎕TCNUL |
⎕TS | ⎕WA | ||||||||
Monadic or dyadic system functions (a value cannot be assigned to these) | |||||||||
⎕AT | ⎕CR | ⎕DC | ⎕DFT | ⎕DL | ⎕DR | ⎕EA | ⎕EC | ⎕ERROR | ⎕ES |
⎕EX | ⎕FMT | ⎕FX | ⎕MF | ⎕NAPPEND | ⎕NC | ⎕NCREATE | ⎕NERASE | ⎕NINFO | ⎕NL |
⎕NLOCK | ⎕NREAD | ⎕NRENAME | ⎕NREPLACE | ⎕NRESIZE | ⎕NSIZE | ⎕NTIE | ⎕NUNTIE | ⎕STOP | ⎕TF |
⎕TRACE | ⎕UCS | ⎕VR | |||||||
Note that quad functions and variables (except for the ⎕A family of functions) are case insensitive |