DADiSP Worksheet Functions > Function Categories > Datasets, Worksheets and Labbooks > DELETEDATASET

 

DELETEDATASET

Purpose:

Deletes an entire Dataset of the current Labbook.

Syntax:

DELETEDATASET("dsname1", "dsname2", ..., "dsnameN", confirm)

"dsnameN"

-

One or more strings. The names of the Datasets to delete.

confirm

-

Optional. An integer, the confirmation flag:

0:

do not confirm deletion

1:

confirm deletion (default)

Returns:

An integer, 1 if successful else <= 0.

Example:

deletedataset("RUN1.1")

 

deletes all the series in Dataset RUN1.1. If a version number is not specified, it is defaulted to version 1.

Example:

deletedataset("RUN1.1", "RUN1.2", 1)

 

Deletes both RUN1.1 and RUN1.2 with confirmation.

Remarks:

The specified Dataset names are case-sensitive.

See Also:

COPYDATASET

DELETELABBOOK

DELETESERIES

DELETEWORKSHEET

IMPORTFILE

LOADDATASET

LOADSERIES

SAVESERIES