JCL Help:PathAddExtension

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Adds the extension to a path.


Pascal

 function PathAddExtension(const Path: string; const Extension: string): string;


Parameters

Parameters Description
const Path: string Path to append the extension to.
const Extension: string The extension to append to path.


Return Value

The Path with extension appended or Path if it already had an extension.


Description

PathAddExtension adds the specified extension to the supplied path. If the path already has an extension the function does nothing. Note that the dot (.) in the extension is optional, if it's not specified the function inserts it.


See Also

PathRemoveExtension


About

Unit

JclFileUtils


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page