fmsavey Posted February 23, 2007 Posted February 23, 2007 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?
Recommended Posts
This topic is 6484 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now