Blue Mango Learning Systems GLX Application Framework version 1.2.0 build 1

Printer friendly version

function glxapp_fileTypeFilterFromExtension()

Returns a file type filter string suitable for use with 'ask file with type'.

function glxapp_fileTypeFilterFromExtension pName
Parameters
TypeNameDescription
Simple parameter. pName The file extension to create the file filter string for. This must have been defined in a File Type Filter object.
Description

'ask file with type' filters the available files that a user can select in the dialog using a specially formatted string. This function will generate that string based on a file extension that you have defined in your application. The string will look something similar to this:

JPEG file|jpg|JPEG


Example:
put glxapp_fileTypeFilterFromExtension("txt") into theFilteTypeFilter 
answer file "Select file:" with type theFilteTypeFilter

Return

File type filter string