www.icetips.com  Icetips Utilities Documentation 11/14/2010    

File Search Class:  GetWildcardList

Previous  Top  Next  


Prototype: (String pWildcards, Byte pNew=True),Long,Proc

 

pWildcardsWildcards to use.  Multiple wildcards can be used, separated by semicolon (;).  For example:  '*.txt;*.php;*.css;*.js;*.htm;*.aspx'
pNewBoolean flag that determines if the Wildcard queue is freed or not.  By default the queue is freed when the method executes.  By passing False in this parameter it is possible to call this method multiple times to add new wildcards to the list.

 

ReturnsNumber of wildcards in the Wildcards property

 

This methods takes a list of wildcards, separated by a semicolon (;) and adds each wildcard to the Wildcard property queue.  At the end it returns the number of records in the Wildcard property queue.  The wildcards are used in the CountFilesInDirectories method.

 

Example:

ITF  ITFileSearchClass

Code

ITS.GetWildCardList('*.txt;*.doc')

ITS.GetWildCardList('*.clw;*.inc',False)  !! Add those also to the Wildcard property

ITS.GetWildCardList('*.txt;*.doc') !! This will reset the wildcards to only *.txt and *.doc

 

See also:

CountFilesInDirectories

Construct

Destruct



Direct link to this page: http://www.icetips.com/manuals/utilities/getwildcardlist_filesearch.htm