OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
Quick HelpExpand Quick Help
ProgrammingExpand Programming

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

Last Update: 2/4/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

 

© OriginLab Corporation. All rights reserved.