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

 

OPENLABBOOK

Purpose:

Opens a Labbook.

Syntax:

OPENLABBOOK("labname", "wrkname", confirm, create)

"labname"

-

A string. The name of the Labbook to open.

"wrkname"

-

Optional. A string, the name of the Worksheet to load. Defaults to a new Worksheet.

confirm

-

Optional. An integer, the confirmation flag.

0:

do not confirm Labbook open.

1:

confirm Labbook open (default).

create

-

Optional. An integer, the create new Labbook flag.

0:

do not create a new Labbook (default).

1:

create a new Labbook if it does not exist.

Returns:

An integer, 1 if successful else <= 0.

Example:

openlabbook("MyBook")

 

opens the Labbook MyBook with confirmation and loads a new Worksheet.

Example:

openlabbook(" ewBooksMyBook","Work1", 0)

 

opens the Labbook MyBook in the directory ewBooks and loads the Worksheet Work1 without confirmation.

Example:

openlabbook(" ewBooksMyBook2", 0, 1)

 

Creates the Labbook MyBook2 in the directory ewBooks if it does not exist. The Labbook is opened with a new Worksheet without confirmation.

Remarks:

The Labbook name can contain a path.

See Also:

DELETEDATASET

DELETELABBOOK

DELETEWORKSHEET

IMPORTFILE

LOADDATASET

LOADSERIES

LOADWORKSHEET

SAVESERIES