Procedure DatasetSaveAs(data\_category, dataset)

DatasetSaveAs

The procedure DatasetSaveAs shows a dialog box in which the user can specify a (new) dataset to which the data is saved.

DatasetSaveAs(
       data_category,   ! (input) element in AllDataCategories
       dataset          ! (output) element parameter in AllDataSets
       )

Arguments

data_category

An element in AllDataCategories, specifying the data category for which you want to save the data.

dataset

An element parameter in AllDataSets. On return this parameter will refer to the dataset that the user selected.

Return Value

The procedure returns 1 if the dataset is saved successfully. It returns 0 if the user cancelled the save operation. If any other error occurs, then the procedure returns \(-1\) and CurrentErrorMessage will contain an error message.

Note

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