| 
 -1 – When the Main Program of a project is executed for the first time on an enterprise server. When the project is closed and another is opened for the first context. 
When a project is opened for the first time under a multi-threaded background engine. 
0 – When a project is run under a full runtime engine, foreground runtime engine, background runtime engine, or background generator engine. If the function is evaluated in called programs and subtasks, RunMode returns 0. 
1 – When a project is activated from the Tools menu. 
2 – When a project is run under a Studio engine and the project is switched to Runtime mode. 
3 – When a project is run under a Studio engine and a program is executed directly from the Development mode. 
 |