From Clomosy Docs

No edit summary
No edit summary
 
Line 41: Line 41:
<h2> See Also </h2>
<h2> See Also </h2>
* [[Clomosy_Class#File_and_Stream_Handling | File and Stream Handling]]
* [[Clomosy_Class#File_and_Stream_Handling | File and Stream Handling]]
{{#seo:|title=App Path Using in Clomosy - Clomosy Docs}}
{{#seo:|description=Discover how to access the main directory and project file paths in Clomosy using AppBasePath and AppFilesPath properties.}}
{{#seo:|description=Discover how to access the main directory and project file paths in Clomosy using AppBasePath and AppFilesPath properties.}}

Latest revision as of 13:33, 24 December 2024

There are properties available for accessing the file path of the project during file operations.

AppBasePath

It is a property that represents the path of the main directory where the Clomosy application is launched.

Example

var
 ClomosyAppPath : String;
 
{
 ClomosyAppPath = Clomosy.AppBasePath;
 ShowMessage('The main directory path of the application: '+ClomosyAppPath);
}

AppFilesPath

It returns the file path of the project.

Example

var
 ProjectFilePath : String;
 
{
 ProjectFilePath = Clomosy.AppFilesPath;
 ShowMessage('Project file path: '+ProjectFilePath);
}

See Also