4.18 FAQ-377 如何声明变量以使其可用于该 Origin 进程?

Last Update: 7/6/2018


当您使用变量类型标识符(例如 double)声明一个变量时,该变量将成为一个进程变量。例如:

// 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;

详细的描述请参考在 LabTalk Guide 的 Scope of Variables 节选。


Keywords:global, project, 全局,项目