home *** CD-ROM | disk | FTP | other *** search
- 135
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FileList
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows and Macintosh
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFileList returns a list of files in a folder.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baFileList( Folder, FileSpec )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String.
- --- RECORDSEPARATOR ---
- Folder is the name of the folder to list.
- --- RECORDSEPARATOR ---
- FileSpec is the pattern of files to match.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- List (Xtra) or String (UCD).
- --- RECORDSEPARATOR ---
- Returns the list of matching files. If Folder doesn't exist, then an empty list/string is
- --- RECORDSEPARATOR ---
- returned.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set Files = baFileList( "c:\windows", "*.*" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- Files := baFileList( "c:\\temp", "*.bmp" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
- , the FileSpec argument follows normal DOS wildcard rules. A *
- --- RECORDSEPARATOR ---
- means match any character in the file name. So *.* copies all files; *.bmp copies
- --- RECORDSEPARATOR ---
- all files with a .bmp extension; T*.* copies all files starting with the letter T.
- --- RECORDSEPARATOR ---
- On
- --- RECORDSEPARATOR ---
- Macintosh
- --- RECORDSEPARATOR ---
- , the Filespec is the four character type code eg "TEXT". Only one
- --- RECORDSEPARATOR ---
- type can be specified. Use an empty string or "*.*" to match all files.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFolderList