System.IOUtils.TPath.HasExtension

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function HasExtension(const Path: string): Boolean; static;

C++

static bool __fastcall HasExtension(const System::UnicodeString Path);

Properties

Type Visibility Source Unit Parent
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TPath

Description

Checks whether a given file name has an extension part.

Call HasExtension to check whether a given file name has an extension part. HasExtension returns true if the file name has an extension; false otherwise.


The following table lists the parameters expected by this method:

Name Meaning

Path

The verified file or directory name

Note: HasExtension raises an exception if the given path contains invalid characters.

See Also

Code Examples