CurrentDataFolder

Revision as of 07:12, 24 April 2007 by ReneeB (talk | contribs) (adding doc status category)


The current data directory is the default paths for loading or storing data. Relative files paths are interpreted relative to this directory. File dialogs for data (e.g., export, import) will appear initially in this directory, and functions such as ReadTextFile, WriteTextFile, or NlpDefine's trace file treat their filename parameter as relative to the current data directory.

Changing directories in a open or save file dialog may change the current data directory.

Analytica also has a CurrentModelDirectory, which determines the default path for saving an loading models and modules. When a model is loaded, the CurrentDataDirectory is set, by default, to the current model directory. The two may changed separately.

The call with no parameters:

CurrentDataDirectory()

returns the full path for the current data directory.

The call with one parameter:

CurrentDataDirectory(directoryPath)

sets the current data directory to the indicated path (if valid), and returns the full path of the current data directory afterwards. The parameter can be a relative path, but the full path is returned.

Declaration

CurrentDataDirectory( dirPath : optional textual atomic )

See also

Comments


You are not allowed to post comments.