PROP:DataPath

Top  Previous  Next

 

A read/write SYSTEM property that can be used to set the default directory for data files.

 

All files with unqualified file names (e.g., those files with no NAME attribute or a NAME with only a relative path) will be looked for in the directory specified by SYSTEM{PROP:DataPath}.

 

SYSTEM{PROP:DataPath} defaults to the directory the application starts in. This will save developers from having to do startup code like the following:

 

GETINI(datadirectory)

file1name = datadirectory & 'file1'

file2name = datadirectory & 'file2'

file3name = datadirectory & 'file3'