Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
vmConsoleState () | |
Returns if the Scol console is shown or hidden. More... | |
vmConsoleToggle () | |
Show or hide the Scol console. More... | |
vmRessGet (szKey) | |
Get the value of a global variable (a string resource). More... | |
vmRessSet (szKey, szValue) | |
Set a global variable (a string resource) for this VM only. More... | |
Package to load : lib/std/vm.pkg
Dependancies :
vmConsoleToggle | ( | ) |
Show or hide the Scol console.
This function showes the Scol console if it was hidden and hides the Scol console if it was shown.
If you directly call _showconsole or _hideconsole once at least, you should not use this function. To use this, you should only call this function.
Prototype: fun [] I
vmConsoleState | ( | ) |
Returns if the Scol console is shown or hidden.
If you directly call _showconsole or _hideconsole once at least, you should not use this function. To use this, you should only call this function.
Prototype: fun [] I
vmRessSet | ( | szKey | , |
szValue | |||
) |
Set a global variable (a string resource) for this VM only.
If the global variable is not defined yet, it will be created in memory. If it is already defined, the new value will replace the old one.
A such resource keeps available (in reading and in writing) during the VM's life.
Thus, a value of the usmress.ini file can also be changed in memory.
Prototype: fun [S S] S
S | : a key, to retreive the value |
S | : a (new) value |
vmRessGet | ( | szKey | ) |
Get the value of a global variable (a string resource).
It is the value at this moment, when this function is called.
Prototype: fun [S] S
S | : a key, to retreive the value |