Difference between revisions of "CurrentDataFolder"

m (Lchrisman moved page CurrentDataDirectory to CurrentDataFolder: Changed preferred name of function, EW 14658)
(EW 14658)
Line 2: Line 2:
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
  
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.
+
''new to [[Analytica 4.6]]. But in [[Analytica 4.5]] and earlier, the same function exists as <code>[[CurrentDataDirectory]]()</code>.
  
Changing directories in a open or save file dialog may change the current data directory.
+
The current data folder is the default path for loading or storing data.  Relative files paths are interpreted relative to this folder (directory).  File dialogs for data (e.g., export, import) will appear initially in this folder, and functions such as [[ReadTextFile]], [[WriteTextFile]], or [[NlpDefine]]'s trace file treat their filename parameter as relative to the current data folder.
  
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.
+
Changing folders in a open or save file dialog may change the current data folder.
 +
 
 +
Analytica also has a [[CurrentModelFolder]], which determines the default path for saving an loading models and modules.  When a model is loaded, the [[CurrentDataFolder]] is set, by default, to the current model folder.  The two may changed separately.
  
 
The call with no parameters:
 
The call with no parameters:
  CurrentDataDirectory()
+
  [[CurrentDataFolder]]()
 
returns the full path for the current data directory.
 
returns the full path for the current data directory.
  
 
The call with one parameter:
 
The call with one parameter:
  CurrentDataDirectory(directoryPath)
+
  [[CurrentDataFolder]](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.
+
sets the current data folder to the indicated path (if valid), and returns the full path of the current data folder afterwards.  The parameter can be a relative path, but the full path is returned.
  
 
= Declaration =
 
= Declaration =
  
  CurrentDataDirectory(dirPath: Optional Text Atomic)
+
  [[CurrentDataFolder]](folder: Optional Text Atomic)
  
 
= See also =
 
= See also =
  
* [[CurrentModelDirectory]]
+
* [[CurrentModelFolder]]
 
* [[ReadTextFile]], [[ReadCsvFile]]
 
* [[ReadTextFile]], [[ReadCsvFile]]
 
* [[WriteTextFile]]
 
* [[WriteTextFile]]
 
* [[NlpDefine]]
 
* [[NlpDefine]]

Revision as of 22:08, 30 May 2014


new to Analytica 4.6. But in Analytica 4.5 and earlier, the same function exists as CurrentDataDirectory().

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

Changing folders in a open or save file dialog may change the current data folder.

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

The call with no parameters:

CurrentDataFolder()

returns the full path for the current data directory.

The call with one parameter:

CurrentDataFolder(directoryPath)

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

Declaration

CurrentDataFolder(folder: Optional Text Atomic)

See also

Comments


You are not allowed to post comments.