p$TDV:Datei:DirList
p$TDV:Datei:DirList
Determine of the content of a directory. All names of files and folders of the given directory are written to an array.
Syntax: | Number = p$TDV:Datei:DirList(Dir,Array ) | ||
| Argument | Type | Meaning |
| Dir | String | Name of the directory containing the content to be read. Note the symbol \ has to be marked by itself at any time, i.e. \\ has to be typed in. |
| Array | String | Name of the array to be filled. The name has to be specified without an index. The following cases are possible:
-Simple parameter of a one-fold indexed parameter group -One-fold indexed parameter of an indexed parameter group. In this case the intended index of the parameter group has to be transferred as well. |
|
|
|
|
Result: | Integer | Number of listings read. In case of error (array is no indexed parameter of type string) -1 is returned. | |
Example: | Number = p$TDV:Datei:DirList('C:\\Programs,'Array' ) | ||