Softanza
StartFrançais
Softanza
The library documents itself · System programming

stzEnvironment

13 own methods · 2 forms written with extensions, listed under their method

the source: base/system/stzEnvironment.ring(opens in a new tab) · All classes · The area reference: System programming

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

No method of this class is run on this page: the class reaches files, the network, processes, the clock, chance or sound, and an example run here would only be an example of its effects. Each method carries the explanation the library gives of itself.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
Var
The value of an environment variable, or "" if it is not set.also written: GetVar · ValueOfno extension
HasVar
TRUE if the variable is set (even to an empty string is reported as unset by the OS get, which returns "" for both -- so Has means "get returns a non-empty value").also written: Hasno extension
Variables
The whole environment as a list of [ name, value ] pairs.also written: Allno extension
VariableNames
Just the variable NAMES.also written: Namesno extension
NumberOfVariables
variables (sensing)also written: CountVariablesno extension
SetVar
EFFECTFUL. Sets a variable for THIS process and every child spawned afterwards. Returns TRUE on success. The value is visible to a subsequent Var() -- get and set share the OS-authoritative store.also written: AssignQCSXTZZZIBWU
UnsetVar
EFFECTFUL. Removes a variable.also written: Unset · RemoveVarno extension
WorkingDirectory
The REAL process working directory (not a virtual cursor). Sensing.also written: Cwd · CurrentDirectoryno extension
ChangeDirectory
EFFECTFUL. Changes the real process working directory. Returns TRUE on success (FALSE if the path does not exist or is not a directory).also written: Cd · ChangeWorkingDirectoryQCSXTZZZIBWU
HostName
host / user identityalso written: MachineName · ComputerNameno extension
UserName
host / user identityalso written: LoginNameno extension
CpuCount
machinealso written: NumberOfCPUs · ProcessorCountno extension