4D v14.3

Application file

Home

 
4D v14.3
Application file

Application file 


 

Application file -> Function result 
Parameter Type   Description
Function result  String in Long name of the 4D executable file or application

The Application file command returns the long name of the 4D executable file or application you are running.

On Windows
If, for example, you are running 4D located at \PROGRAMS\4D on the volume E, the command returns E:\PROGRAMS\4D\4D.EXE.

On Macintosh
If, for example, you are running 4D in the Programs folder on the disk Macintosh HD, the command returns Macintosh HD:Programs:4D.app.

Example  

At startup on Windows, you need to check if a DLL Library is correctly located at the same level as the 4D executable file. In the On Startup database method of your application you can write:

 If(On Windows & (Application type#4D Server))
    If(Test path name(Long name to path name(Application file)+"XRAYCAPT.DLL")#Is a document)
  ` Display a dialog box explaining that the library XRAYCAPT.DLL
  ` is missing. Therefore, the X-ray capture capability will not be available.
    End if
 End if

Note: The project methods On Windows and Long name to path name are listed in the section System Documents.

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 491

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

Data file
DATA SEGMENT LIST
Structure file

 
ARTICLE USAGE

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