SET DOCUMENT TYPE

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


SET DOCUMENT TYPE (document; fileType)

ParameterTypeDescription
documentStringDocument name or
full document pathname
fileTypeStringWindows file extension (1 to 3-character string)
or Mac OS file type (4-character string)

Description

The SET DOCUMENT TYPE command sets the type of the document whose name or pathname you pass in document.

You pass the new type of the document in fileType.

See the discussion of file types in System Documents and Document type.

On Windows, this command modifies the file extension and therefore the value of document. For example, the instruction:

   SET DOCUMENT TYPE("C:\\Docs\\Invoice.asc";"TEXT")

renames the file "Invoice.asc" to "Invoice.txt". In 4D, the Macintosh "TEXT" type corresponds to the Windows "txt" type.

If the type has no equivalent provided by 4D, you will have to pass the extension. For example, the following instruction renames the file "Invoice.asc" to "Invoice.zip":

   SET DOCUMENT TYPE("C:\\Docs\\Invoice.asc";"zip")

See Also

Document type, MAP FILE TYPES, SET DOCUMENT CREATOR, SET DOCUMENT PROPERTIES.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next