4D v14.3

SET DOCUMENT TYPE

Home

 
4D v14.3
SET DOCUMENT TYPE

SET DOCUMENT TYPE 


 

SET DOCUMENT TYPE ( document ; fileType ) 
Parameter Type   Description
document  String in Document name or full document pathname
fileType  String in Windows file extension or Mac OS file type (4-character string)

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 Documentsand 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")

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 530

This command modifies the Error system variable

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

Document type
MAP FILE TYPES
SET DOCUMENT CREATOR
SET DOCUMENT PROPERTIES

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)