JCL Help:PathExtractElements

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Extracts all elements from a path.


Pascal

 procedure PathExtractElements(const Source: string; var Drive: string; var Path: string; var FileName: string; var Ext: string);


Parameters

Parameters Description
const Source: string String that represents a path that you want to split into its elements.
var Drive: string Drive indicator. This is a string in the form "c:".
var Path: string Path of the file, without drive or filename. Leading and trailing directory separators are trimmed.
var FileName: string Name of the file, without the extension part.
var Ext: string File extension including the dot (.).


Description

PathExtractElements splits the supplied path into its elements such as drive, path and filename. Depending on the supplied path any of the out parameters can be an empty string on return.


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