System.IOUtils.TPath.HasValidFileNameChars

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

class function HasValidFileNameChars(const FileName: string;  const UseWildcards: Boolean): Boolean; static;

C++

static bool __fastcall HasValidFileNameChars(const System::UnicodeString FileName, const bool UseWildcards);

Properties

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

Description

Checks whether a given file name contains only allowed characters.

Call HasValidFileNameChars to check whether a given file name contains only allowed characters. HasValidFileNameChars returns true if the string contains only allowed characters; false otherwise.


The following table lists the parameters expected by this method:

Name Meaning

Path

The verified file name string.

UseWildcards

Specifies whether the mask characters are treated as valid file name characters (e.g. asterisk or question mark).


See Also