LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Dialog.vi issue with New File selection

Why does the File Dialog.vi when configured to

 

* Limit Selection to single Item

* File     

* New

 

According to the help when you configure File Dialog for New Files only:       New—The user only can enter the name of a new file or folder.

 

That it not srue as I can select any file but it gives me a confirmation warning upon replacement.  I would rather not give an operator the chance to select existing files and potentially overwrite them. 

 

How can you just make the user enter a new file?  Is it possible with the File Dialog?

 

Thank you,

 

Paul Holzrichter

0 Kudos
Message 1 of 2
(2,564 Views)

Teds wrote:

I would rather not give an operator the chance to select existing files and potentially overwrite them. 


SInce this function is provided by the OS, I am not sure what you can do for the exact dialog mechanics..

 

A file dialog does not do anything to any file. What you do with the seleted file name later in the code is all that matters. There is an "exist?" output so you can discard the further operation even if a user selects to overwrite. You could even add your own popup if this happens ("Your selection has been ignored because you are not allowed to use an existing file!").

 

It is good to be able to select an existing file. Many times your new file name is similar to an existing file, so first selecting an existing file and then editing the filename before pressing OK is often convenient and avoids the need to type long strings.

 

 

0 Kudos
Message 2 of 2
(2,559 Views)