Description

Method used to query for installed File Formats in a certain Access Mode.

Return Type

A Long value.  

LONG indicating the number of values in the safearrays

Syntax

object.GetAllFileFormats (mode, extensions, descriptions)

The GetAllFileFormats Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McStream.
modeRequired. A mcfmFileMode enumeration, as described in settings.
extensionsRequired. A Variant value.
descriptionsRequired. A Variant value.

Settings

The settings for mode are:

ConstantValueDescription
 mcSTREAM_READ1

open the file to read it into the image

 mcSTREAM_WRITE2

open the file to write it to a new or existing image file

 mcSTREAM_READ_WRITE3

open the file for both access (may not work for all formats)

Remarks

This method is used by the Open and SaveAs dialog boxes to populate the File Formats drop down box.

The method does not instantiate any Subclasses, but uses the Registry to query for McStream information.

The extensions and descriptions arrays have a 1-1 relationship so that descriptions(n) contains the description for the Stream with extension extensions(n).