VarName | Name of variable in globals table. |
Type | Optional. Type of the variable to get: text, integer, real. Defaults to text. |
set NoSuchVariable
, this command will return an error if you try to access a variable that does not exist rather than create one for you (as, for instance, upvar
does). You may wish to take a look at the documentation about the XxxDbGlobal commands: About XxxGlobal.
Check About Configuration for Database Use for info about how to set up Gen for using database-related commands.
% SetDbGlobal MyVar 123
123
% GetDbGlobal MyVar
123