Collection of names of all Origin datasets.
Get the name of Dataset having the 0-offset index.
Collection<string> DatasetNames
string DatasetNames(int index)
Returns the name of the dataset having the 0-offset index.
EX1
// This example assumes several existing datasets - either loose datasets (those not displayed // in a worksheet column or matrix window) or displayed datasets int Project_DatasetNames_ex1() { // Loop over all datasets in the project and display their names int ii = 1; foreach(string strName in Project.DatasetNames) { printf("Dataset(%d) Name: %s\n",ii++, strName); } return 0; }
EX2
// This example assumes at least one existing dataset in Origin int Project_DatasetNames_ex2(int index = 0) { string strName = Project.DatasetNames(index); printf("Dataset(%d) Name: %s\n",index, strName); return 0; }
Collection of names of all Origin datasets in the current project - either loose datasets (those not displayed in a worksheet column or matrix window) or displayed datasets.
origin.h
Project::Pages, Project::WorksheetPages, Project::Notes, Project::MatrixPages, Project::GraphPages, Project::LayoutPages, Project::LooseDatasetNames