This article will cover the syntax of the ‘directory’ regular script statement

The directory statement is used to define which directory to use to load files subsequently specified. The directory defined will be used until another directory statement is used to define a new directory.

Statement syntax

PathA string specifying the directory location.

Example

In this example, we define a path to a directory. We then load a QVD file using referencing only the file name.

Directory lib://Public:DataFiles/;
ITEM_DETAILS:
LOAD
    *    
FROM [ITEM_DETAILS.qvd] (qvd);

Result

The QVD file ‘ITEM_DETAILS’ is successfully loaded into the app.