Hi, Attached is a small patch for the SysUtils documentation clarifying a few things regarding:
GetAppConfigFile GetAppConfigDir ApplicationName Regards, - Graeme -
Index: sysutils.xml =================================================================== --- sysutils.xml (revision 333) +++ sysutils.xml (working copy) @@ -3444,8 +3444,9 @@ The directory which is returned is the name of the directory where the application is supposed to store files. This does not mean that the directory exists, or that the user can write in this directory (especially if -<var>Global</var>=<var>True</var>). It just returns the name of the -appropriate location. +<var>Global</var>=<var>True</var>). It just returns the name of the +appropriate location. Also note that the returned name does not contain a ending +path delimiter. </p> <p> On systems where the operating system provides a call to determine this @@ -3482,7 +3483,8 @@ <var>True</var>, will insert the name of a directory before the filename. This can be used in case the application needs to store other data than configuration data in an application-specific -directory. Default behaviour is to set this to <var>False</var>. +directory. Default behaviour is to set this to <var>False</var>. The default +file extension of the returned file is: .cfg </p> <p> No assumptions should be made about the existence or writeability of this @@ -3516,9 +3518,15 @@ <element name="ApplicationName"> <short>Return a default application name</short> <descr> +<p> <var>ApplicationName</var> returns the name of the current application. Standard this is equal to the result of <var>ParamStr(0)</var>, but it can be customized by setting the <link id="OnGetApplicationName"/> callback. +</p> +<p> +Note that the returned value is only the <var>name</var> portion. It does +not contain any path or file extension. +</p> </descr> <errors> None.
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
