|
Previous Top Next |
Prototype: | (String pWildcards, Byte pNew=True),Long,Proc |
pWildcards | Wildcards to use. Multiple wildcards can be used, separated by semicolon (;). For example: '*.txt;*.php;*.css;*.js;*.htm;*.aspx' |
pNew | Boolean 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. |
Returns | Number 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: