Opendocument function – Multichannel Systems NeuroExplorer User Manual

Page 149

Advertising
background image

5.5.1.7. OpenDocument Function

OpenDocument Function


Opens a data file with the specified path. Returns a reference to the opened document.

Syntax


documentReference OpenDocument(string filePath)

Parameters

Parameter

Type

Description

filePath

string

Full path of the file.

Returns


Returns a reference to the opened document. The function returns zero (invalid document reference)
if OpenDocument operation failed.

Comments


None

Usage

NexScript


This function can be used to open all supported data file formats. For example:

doc = OpenDocument("c:\data\file1.plx")

doc = OpenDocument("c:\data\file1.map")

doc = OpenDocument("c:\data\file1.mcd")

doc = OpenDocument("c:\data\file1.txt")


Before opening a text file, specify text file options using View/Options menu command.

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 147

Advertising