+---------------+ V | >>-aListBox~AddDirectory(--drvPath--,--"----+-READWRITE-+-+--"--)->< +-READONLY--+ +-HIDDEN----+ +-SYSTEM----+ +-DIRECTORY-+ +-ARCHIVE---+
The AddDirectory method adds all or selected file names of a given directory to the list box.
The arguments are:
The drive, path, and name pattern.
The attributes that the files must have in order to be added:
Normal read/write files (same as none).
Files that have the read-only bit.
Files that have the hidden bit.
Files that have the system bit.
Files that have the directory bit.
Files that have the archive bit.
The one-based index of the file added last to the list, or 0 if an error occurred.
The following example puts the names of all read/write files with extension .REX in the given directory of the list box:
MyDialog~AddDirectory(203, drive":\"path"\*.rex", "READWRITE")