Reply To: How to initialize global variable?

Product Compare Forums Multi-Edit Support How to initialize global variable? Reply To: How to initialize global variable?

#3211
DanHughes
Participant

The global { } definition is used to create aliases for global variables which can then be access like normal variables in macros. I already discussed how to read and write globals via aliases in another posting http://www.multiedit.com/forums/viewtopic.php?t=90

One method for initializing system wide global variables is to use the Config\Startup.cfg file. This file is basically an Update script (Update.s) which is run every time Multi-Edit is started or switches sessions. The following is what you would add to this file to set a global string and integer.

[code:2zi2383k]
GStr mystring My string
GInt myint 5
[/code:2zi2383k]