Xbasic
FILE.DEPENDENCIES Function
Syntax
File_List as C = FILE.Dependencies(C file_dependencies)
Arguments
- file_dependenciesCharacter
The list of dependencies for a given file.
Returns
- File_ListCharacter
Returns the dependent files that have been updated.
Description
Determines if the master file for a list of dependencies is out of date.
Discussion
When a master file is based on the contents of one or more transaction files, then the master file is out of date when any of the transaction files is updated. The FILE.DEPENDENCIES() method can be used to determine if the master file is out of date.
Example
string = <<%a% c:\result.txt|c:\file1.txt c:\result.txt|c:\file2.txt %a% ' assume that result.txt is up to date ? file.dependencies(string) = "" ' now update file2.txt ? file.dependencies(string) = c:\result.txt|c:\file2.txt
See Also