Procedure DatasetSetCurrent(data\_category, dataset)


The procedure DatasetSetCurrent sets the dataset that is regarded as the current dataset for a given data category. It does not load or save any data or checks whether data needs to be saved. You can, for example, use it to make a newly created dataset the current dataset, so that during a DatasetSave the data is written to this dataset.

        data_category,    ! (input) element in AllDataCategories
        dataset           ! (input) element of the set AllDataSets



An element in AllDataCategories, specifying the data category for which you want to set the current dataset.


An element of the set AllDataSets, refering to the dataset that should become the current dataset.

Return Value

The procedure returns 1 on success, or 0 otherwise.


  • This function is only applicable if the project option Data_Management_style is set to Single_Data_Manager_file.