SftDirectory 2.5

SftDirectory.MatchFolderRegexp Property

Softel vdm, Inc.

Defines the regular expression a folder name has to match in order to be added to the control.

Syntax       

Get

VB.NET

RegExp = object.MatchFolderRegexp  As String

VB

RegExp = object.MatchFolderRegexp  As String

C#.NET

string RegExp = object.MatchFolderRegexp;

VC++

_bstr_t RegExp = object->MatchFolderRegexp;
_bstr_t RegExp = object->GetMatchFolderRegexp();

C

HRESULT object->get_MatchFolderRegexp(BSTR* RegExp);

Delphi

RegExp := object.MatchFolderRegexp   : WideString;

Put

VB.NET

object.MatchFolderRegexp = RegExp  As String

VB

object.MatchFolderRegexp = RegExp  As String

C#.NET

string object.MatchFolderRegexp = RegExp;

VC++

_bstr_t object->MatchFolderRegexp = RegExp;
void object->PutMatchFolderRegexp(_bstr_t RegExp);

C

HRESULT object->put_MatchFolderRegexp(BSTR RegExp);

Delphi

object.MatchFolderRegexp := RegExp   : WideString;

object

A SftDirectory object.

RegExp

Defines the regular expression a folder name has to match in order to be added to the control. Set to an empty string to clear.

Comments

The MatchFolderRegexp property defines the regular expression a folder name has to match in order to be added to the control.

The regular expressions supported by MatchFileRegexp and MatchFolderRegexp are Perl compatible. For detailed information about Perl regular expressions, visit http://perldoc.perl.org/perlre.html.

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

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

If the MatchFolder and MatchFolderRegexp properties are empty (empty string), all folders are displayed by the SftDirectory control.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com