Documentation

getglobal

Syntax: %getglobal(name)

Returns the value of global variable name (stored in the INI file). A variable stored with %getglobal can only be set with %setglobal and has no relationship with other variables stored in your package files. This is different to the #GVAR command, which has been removed.

getglobal Example:

#CALL %setglobal("MyName","Zugg")
#SHOW %getglobal("MyName")
Displays: "Zugg"

After exiting TeSSH, if you inspect the contents of the TeSSH.INI file, you will find the following data:

[User]
MyName=Zugg

Add comment

Login or register to post comments