Category:Global Scripts

Global Scripts are client scripts that have the Global flag set on them. On start up of the Rich Client all the global scripts are combined into one script and compiled. This means that you can not reuse constants or variable names unless within a specific function.

Global scripts are best used for functions and constants you use repeatedly, such as GetForeignFieldText. They also contain events that are fired across multiple forms or functionality, such as OnMainWindowClose & OnMenuExpanded.