2.2.4.38.46 Project::LooseDatasetNamesLooseDatasetNames
Description
Collection of names of all loose Origin datasets.
Get the name of the loose dataset having the 0-offset index.
Declaration
Collection<string> LooseDatasetNames
string LooseDatasetNames(int index)
Parameters
- index
- [input] An integer smaller than the number of loose datasets in the open project. The datasets are enumerated by the order in which they are created in the open project file.
Return
Returns the name of the loose dataset having the 0-offset index.
Examples
EX1
// This example assumes several existing loose datasets (datasets not displayed
// in a worksheet column or matrix window)
int Project_LooseDatasetNames_ex1()
{
// Loop over all loose datasets in the project and display their names
int ii = 1;
foreach(string strName in Project.LooseDatasetNames)
{
printf("Loose Dataset(%d) Name: %s\n",ii++, strName);
}
return 0;
}
EX2
// This example assumes at least one existing loose dataset (a dataset not
// attached to a worksheet or a matrix) in Origin
int Project_LooseDatasetNames_ex2(int index = 0)
{
string strName = Project.LooseDatasetNames(index);
printf("Loose Dataset(%d) Name: %s\n",index, strName);
return 0;
}
Remark
Collection of names of all Origin datasets in the current project not attached to a worksheet or a matrix.
Header to Include
origin.h
See Also
Project::Pages, Project::WorksheetPages, Project::Notes, Project::MatrixPages, Project::GraphPages, Project::LayoutPages, Project::DatasetNames
Reference
|