4D v16.3Test path name |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
Test path name
Test path name
The Test path name function checks if a document or folder whose name or pathname you pass in pathname is present on the disk. You can pass either a relative or absolute pathname, expressed in the syntax of the current system. If a document is found, Test path name returns 1. If a folder found, Test path name returns 0. The following predefined constants are provided by 4D:
If no document nor folder is found, Test path name returns a negative value (i.e. -43 for File not found). The following tests if the document “Journal” is present in the folder of the database, then creates it if it was not found: If(Test path name("Journal")#Is a document)
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D v6 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||