Skip to content

ApplicationName

Return a default application name

Declaration

Source position: osutilsh.inc line 49

  function ApplicationName : string;

Description

ApplicationName returns the name of the current application. Standard this is equal to the filename part minus extension of ParamStr(0), but it can be customized by setting the OnGetApplicationName callback.

Note that the returned value is only the name portion. It does not contain any path or file extension.

Errors

None.

See also

Name Description
ConfigExtension Default application configuration file extension.
GetAppConfigDir Return the appropriate directory for the application's configuration files.
GetAppConfigFile Return an appropriate name for an application configuration file.
OnGetApplicationName Callback to get a customized application name.