System Variable LX: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<h1>{quad}LX - Latent Expression</h1> | <h1>{quad}LX - Latent Expression</h1> | ||
The {quad}LX variable is used within a workspace to set the action to take when the workspace is loaded. Typically | The {quad}LX variable is used within a workspace to set the action to take when the workspace is loaded via )LOAD or the '''File, Open''' menu. Typically {quad}LX is set to the name of a function in the workspace. {quad}LX defaults to null. | ||
Example usage: | Example usage: | ||
:<code> {quad}LX{:=}'Start'</code> | :'''<big><code> {quad}LX{:=}'Start'</code></big>''' | ||
When this workspace is saved, the next time it is loaded, it will attempt to start the function '''Start'''. An error will occur if the function named in {quad}LX is not present when the workspace is loaded. | When this workspace is saved, the next time it is loaded through the <big>''')LOAD'''</big> command or the '''file, open''' menu, it will attempt to start the function <big>'''Start'''</big>. An error will occur if the function named in <big>'''{quad}LX'''</big> is not present when the workspace is loaded. | ||
The <big>'''{quad}LX'''</big> function is ''not'' executed if the workspace is loaded via the <apll>)XLOAD</apll> command or through the '''file, xload''' menu. | |||
The function of {quad}LX is similar to the function of the AUTOEXEC.BAT file when DOS is started, or when in Windows if you have a shortcut in the Startup Folder in the Start Menu. The function or action in the {quad}LX system variable is executed before the Session Manager returns control to you. | The function of {quad}LX is similar to the function of the AUTOEXEC.BAT file when DOS is started, or when in Windows if you have a shortcut in the Startup Folder in the Start Menu. The function or action in the {quad}LX system variable is executed before the Session Manager returns control to you. | ||
The action of <big>'''{quad}LX'''</big> when a workspace is <apll>)LOAD</apll>ed is essentially equivalent to typing <big>'''{execute}{quad}LX'''</big> immediately after loading the workspace. | |||
Note that system commands beginning with a <big><b>)</b></big> cannot be executed through <big><b>{quad}LX</b></big>. | Note that system commands beginning with a <big><b>)</b></big> cannot be executed through <big><b>{quad}LX</b></big>. |
Revision as of 15:48, 27 February 2013
⎕LX - Latent Expression
The ⎕LX variable is used within a workspace to set the action to take when the workspace is loaded via )LOAD or the File, Open menu. Typically ⎕LX is set to the name of a function in the workspace. ⎕LX defaults to null.
Example usage:
⎕LX←'Start'
When this workspace is saved, the next time it is loaded through the )LOAD command or the file, open menu, it will attempt to start the function Start. An error will occur if the function named in ⎕LX is not present when the workspace is loaded.
The ⎕LX function is not executed if the workspace is loaded via the )XLOAD command or through the file, xload menu.
The function of ⎕LX is similar to the function of the AUTOEXEC.BAT file when DOS is started, or when in Windows if you have a shortcut in the Startup Folder in the Start Menu. The function or action in the ⎕LX system variable is executed before the Session Manager returns control to you.
The action of ⎕LX when a workspace is )LOADed is essentially equivalent to typing ⍎⎕LX immediately after loading the workspace.
Note that system commands beginning with a ) cannot be executed through ⎕LX.
See Also
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 |