• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

Module: Editor

Version: 2.2.1 +

Type: String

Category: Document

## Description

The formula 'GetPathToDataFiles' returns the path to the directory where the Futurama xml-files are stored. In this directory frequently other files are stored. For example a subfolder 'members', containing a file members.xml with member data. By using the function 'GetPathToDataFiles', you don't have to fill in the entire path to the members.xml, but only the path relative to the directory where the Futurama xml-files are stored. If you have created a Futurama application stored at a certain server, you can copy the application to another server without changing all the paths to the files. It is also possible to use the formula 'GetRelativePathToDataFiles'. With the formula you get the path relative to the location where the Futurama xml-files are stored. If you created with Futurama a website application, use the formula 'GetRelativePathToDataFiles' in order to get the path to files you use in HTML (for example images).

## Parameters

There are no parameters for this function.

## Example

Suppose the Futurama xml-files are stored in the folder c:\inetpub\wwwroot\futurama\application. Within the application folder you created a subfolder 'Members' with a xml-file members.xml. By using the formulas 'Concatenate' and 'GetPathToDataFiles' you can refer to these xml-file: Concatenate(GetPathToDataFiles(),members\members.xml). This results in: c:\inetpub\wwwroot\futurama\application\members\members.xml

## Related Topics

Updated: 2013-03-25