FileType_GetExtension()

Examples


The FileType_GetExtension() function retrieves the file extension for a specified file type.

Syntax

FileType_GetExtension(file_type)

Parameters

file_type – An integer specifying the file type for which the extension will be returned. The following table lists the constants for the file types of which an extension can be returned.

[spacer]

Constant

Description

TEXTFILE

Text file

TABFILE

Tab-delimited file

COMMAFILE

Comma-delimited file

HTMLFILE

HTML file

PDFFILE

PDF file

XMLFILE

XML file

APPFILE

Application file

DICTIONARY

Dictionary file

LAUNCH

Launch file

MACROFILE

Macro file

DOCXFILE

Microsoft Word file

XLSXFILE

Microsoft Excel file

XPSFILE

XPS file

RTFFILE

Rich Text file


Return value

A string containing the file type extension. The extension does not include the initial period character.


Documentation Feedback