# QvdFieldName Script function

This script function returns the name of field number fieldno in a QVD file. If the field does not exist NULL is returned.

Syntax:

QvdFieldName(filename , fieldno)

Arguments:

Arguments

| Argument | Description |
| --- | --- |
| filename | The name of a QVD file, if necessary including path, as a folder or web data connection.<br><br>Example: 'lib://Table Files/'<br><br>In legacy scripting mode, the following path formats are also supported:<br><br><ul> <li> <p> absolute </p> <p><span><span>Example: </span></span><span>c:\data\</span> </p> </li> <li> <p>relative to the <span>Qlik Sense</span> application working directory.</p> <p><span><span>Example: </span></span><span>data\</span> </p> </li> <li> <p>URL address (<span>HTTP</span>  or <span>FTP</span>), pointing to a location on the Internet or an intranet. </p> <p><span><span>Example: </span></span><span>http://www.qlik.com</span> </p> </li> </ul> |
| fieldno | The number of the field within the table contained in the<br>QVD file. |

Examples:

`QvdFieldName 
 ('MyFile.qvd', 5)` `QvdFieldName 
 ('C:\MyDir\MyFile.qvd', 5)` `QvdFieldName 
 ('lib://DataFiles/MyFile.qvd', 5)`

All three examples return the name of the fifth field of the table contained in the QVD file.