Application file String
|This command does not require any parameters|
|Function result||String||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.
If, for example, you are running 4th Dimension located at \4DWIN600\PROGRAM on the volume E, the command returns E:\4DWIN600\PROGRAM\4D.EXE.
If, for example, you are running 4th Dimension in the folder 4th Dimension® 6.0 on the disk Macintosh HD, the command returns Macintosh HD:4th Dimension® 6.0:4th Dimension® 6.0.
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.
Data file, DATA SEGMENT LIST, Structure file.