ArcPad Scripting Object Model
FindFiles Method
See Also  Send comments on this topic.
SearchFile
Required. A String that represents the folder and file filter to search within the archive.
AttributeFilter
Optional. It is used to suppress directories and readonly files.
Archive Object : FindFiles Method

Glossary Item Box

Description

Returns the names of all files in the archive that meet the search criteria.

Syntax

object.FindFiles ( SearchFile, [ AttributeFilter ] )

Parameters

SearchFile
Required. A String that represents the folder and file filter to search within the archive.
AttributeFilter
Optional. It is used to suppress directories and readonly files.

Return Type

Array

Remarks

The wildcard character (*) can be used to match files in the root directory of the archive, but does not match files in subfolders of the archive. To match files in subfolders, use a slash character (/) along with the wildcard character.
For example, if a ZIP archive contained the following files:
ABC.txt
SubDir/XYZ.txt

FindFiles("*") will only match ABC.txt. To access the other file, use FindFiles("SubDir/*") or FindFiles("*/*").
Please note that forward slashes and backslashes are interchangeable, so "*\*" will yield the same result as "*/*".

Example

See Also

© 2013 All Rights Reserved.