Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.MatchFile Property

Defines the wildcard pattern a file name has to match in order to be added to the control.

Syntax

Get

VB.NETString = object.MatchFile As String
VBString = object.MatchFile As String
C#.NETstring String = object.MatchFile;
VC++_bstr_t String = object->MatchFile;
_bstr_t String = object->GetMatchFile();
CHRESULT object->get_MatchFile(BSTR* String);

Put

VB.NETobject.MatchFile = String As String
VBobject.MatchFile = String As String
C#.NETstring object.MatchFile = String;
VC++_bstr_t object->MatchFile = String;
void object->PutMatchFile(_bstr_t String);
CHRESULT object->put_MatchFile(BSTR String);

object

A SftDirectory object.

String

Defines the wildcard pattern a file name has to match in order to be added to the control. Set to an empty string to clear.

Comments

The MatchFile property defines the wildcard pattern a file name has to match in order to be added to the control.

Files that are part of the file system (SftDirectoryFolder.IsFile is True) must match the wildcard pattern defined using the MatchFile or MatchFileRegexp properties to be displayed by the SftDirectory control. Folders, links, etc. are not tested against the defined pattern. Folders that are part of the file system must match the wildcard pattern defined using the MatchFolder or MatchFolderRegexp properties.

The MatchFileRegexp property is identical to the MatchFile property, but supports Perl regular expressions instead of a wildcard pattern. If the MatchFile property defines a pattern, the MatchFileRegexp property is ignored.

If the MatchFile and MatchFileRegexp properties are empty (empty string), all files are displayed by the SftDirectory control.

The MatchFile property accepts simple DOS-style wildcard patterns, where '?' matches any one character, '*' matches any number of characters, any other characters in the pattern must match the filename exactly.

Examples:

*.* matches all files

*.exe matches all files with the extension "exe".

A?0?.* matches all files with the letter A in the first position and the number 0 in the third position.

See Also SftDirectory Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.