February 23, 200718 yr I am using the insert file function in a script. In the specify source file I have entered a variable. Before the insert file function is executed I set the variable with data from a field. If the file exists the file (or in this case the reference) is inserted into the container field and all is well. If the file does not exist an open dialogue appears. Is there any way to prevent this. I do not want the user inserting a file that does not belong in there. Error trapping will not work. The only thing I could think of was to add a second reference in the specify source file to an empty file. By doing this if the first file does not exist then the empty file is inserted. This not the ideal solution but it is better then having the user insert a file that is not intended to be there. Are there any FM functions that can test if a file exists?
Create an account or sign in to comment