4D v16.3

System Documents

Home

 
4D v16.3
System Documents

System Documents 

 

Constant  Type Value Comment
Absolute path  Longint 2 The documents array contains absolute pathnames
Alias selection  Longint 8 Authorizes the selection of shortcuts (Windows) or aliases (Mac OS) 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 OS X format: CR (carriage return)
Document with CRLF  Longint 2 Line breaks are converted to Windows format: CRLF (carriage return + line feed)
Document with LF  Longint 4 Line breaks are converted to Unix format: LF (line feed)
Document with native format  Longint 1 (Default) Line breaks are converted to the native format of the operating system: CR (carriage return) under OS X, 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 (Mac OS 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 (Mac OS only): Authorizes the selection of packages as entities. By default, if this constant is not used, the command will not allow the selection of software packages as such.
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
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 v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)