4.18 FAQ-377 How do I declare a variable so that it is available for an Origin session?

Last Update: 2/3/2015

When you declare a variable with a type identifier, such as double, the variable becomes a session variable. For example:

// Variable defined below will be saved with Origin project and not 
// available when a new project is opened
cow = 3;

// Variable defined below is available during an Origin session 
// but not saved with any project
double cow = 3;

You can refer to the Scope of Variables section in LabTalk Guide for details.


Keywords:global, project