Returns the full pathname of the application EXE file.
[ sModulePath = ] Object.ModulePath
The ModulePath property syntax has the following parts:
Name |
Type |
Description |
Object |
AApp |
AApp control |
sModulePath |
BString |
The string used for the full pathname of the application EXE file. |
When running from the IDE the path returns is the path of the EXE as specified in the Project properties Target File. To determine if the application is running from the IDE use the DebugLog variable.
The following statement prints the full pathname of the application EXE file:
print "Running "; App.ModulePath
The following statement effectively recreates the command line entered by the user to run the application EXE file:
sCommand = App.ModulePath + App.CommandLine