This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
System Documents

System Documents 

 

Constant  Type Value Comment
Absolute path  Longint 2 The documents array contains absolute pathnames
Allow alias files  Longint 8

Authorizes the selection of shortcuts (Windows) or aliases (macOS) as document.
By default, if this constant is not used, when an alias or shortcut is selected, the command will return the access path of the targeted element. When you pass the constant, the command returns the path of the alias or shortcut itself.

Delete only if empty  Longint 0 Deletes folder only when it is empty
Delete with contents  Longint 1 Deletes folder along with everything it contains
Document unchanged  Longint 0 No processing
Document with CR  Longint 3

Line breaks are converted to CR (carriage return), the default Classic Mac OS format.

Document with CRLF  Longint 2

Line breaks are converted to CRLF (carriage return + line feed), the default Windows format.

Document with LF  Longint 4

Line breaks are converted to LF (line feed), the default Unix and macOS format. 

Document with native format  Longint 1

(Default) Line breaks are converted to the native format of the operating system: LF (line feed) under macOS, CRLF (carriage return + line feed) under Windows

File name entry  Longint 32 Allows user to enter a file name in a 'Save as' dialog box. No file is saved and it is up to the developer to create a file in response to this action (the Document system variable is updated). In this context, the directory parameter may contain the path to a file instead of a directory. The file name will be used as the suggested file name in the Save as text field. The parent directory will be used as default path.
Folder separator  String Windows="\" Mac OS=":" This constant has a different value depending on the operating system from which it is called. It can be used to build valid pathnames without taking the operating platform into account.
Note: This constant is only used for 4D applications executed in Unicode mode (it is not supported in non-Unicode compatibility mode).
Get pathname  Longint 3  
Ignore invisible  Longint 8 Invisible documents are not listed
Is a document  Longint 1  
Is a folder  Longint 0  
Multiple files  Longint 1 Authorizes the simultaneous selection of several files using the key combinations Shift+click (adjacent selection) and Ctrl+click (Windows) or Command+click (Mac OS). In this case, the selected parameter, if passed, contains the list of all selected files. By default, if this constant is not used, the command will not allow the selection of multiple files.
Package open  Longint 2

(macOS only): Authorizes the opening of packages as folders and thus the viewing /selection of their contents. By default, if this constant is not used, the command will not allow the opening of packages.

Package selection  Longint 4

(macOS only): Authorizes the selection of packages as entities (default if omitted). Use Package open if you want to allow users to view/select package contents. 

Path is POSIX  Longint 1 The path is expressed using the Posix syntax
Path is system  Longint 0 (Default) The path is expressed using the current system syntax (Windows or macOS)
Posix path  Longint 4 The documents array contains Posix format pathnames
Read and write  Longint 0 Default mode
Read mode  Longint 2  
Recursive parsing  Longint 1 The documents array contains all files and subfolders of the specified folder
Use sheet window  Longint 16 (Mac OS only): Displays the selection dialog box in the form of a sheet window (this option is ignored under Windows).
Sheet windows are specific to the Mac OS X interface which have graphic animation (for more information, refer to the Window Types (compatibility) section). By default, if this constant is not used, the command will display a standard dialog box.
Write mode  Longint 1  


See also 

DELETE FOLDER
DOCUMENT LIST
Document to text
Open document
Path to object
Select document
Select folder
System Documents
Test path name
TEXT TO DOCUMENT

 
PROPERTIES 

Product: 4D
Theme: List of constant themes

 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)