logo-header

 
 

syntax

  • ExistingFile(alternative, file)

definition

ExistingFile(alternative, file) results in a string value with the full path name of the file argument if this file exists and the string value of the alternative  argument if the file does not exists. If no path information is configured, the default path for both arguments is the %ConfigDir%.

applies to

Data items alternative and file with string value type

since version

6.026

example

parameter<string> ExistingFile := 
ExistingFile('c:/te/test.txt', 'd:/te/test.txt')
Result: Updating this item results in the value 'd:/te/test.txt' if this file exists and if not in the value 'c:/te/test.txt'.

OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904