LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete File in 8.2 does not confirm

Delete File in the Advanced File Vi's does not display a confirm message unless the input to the Path is an empty path.  The Help does not mention this restriction.  Can anyone else confirm this behavior, suggest an alternative?  I could create my own dialog, but it seems unneccessary if the vi works as the help describes.
Thanks
0 Kudos
Message 1 of 3
(2,916 Views)

There is an input called "confirm." It is set to false by default. Set it to true and you will see a confirmation prompt when attempting to delete a file.

Edit: Maybe I should have tried it first. I see what you mean now. That is quite odd that it doesn't ask you if you wire a filename. In that case I would just prompt the user with my own dialog and ask them if they want to do it before deleting. I actually do this when I delete a file, I just never thought to use the built in prompt anyway.

Message Edited by Marc A on 01-18-2007 11:16 AM

0 Kudos
Message 2 of 3
(2,911 Views)
Shan,

Unfortunately this is a known behavior that has been identified in LabVIEW 8.20; I apologize for the inconvenience that this creates for you. As you have seen, when this path is wired, you do not receive a delete prompt regardless of the input to the "confirm" terminal. As I mentioned, this issue has been addressed and will be fixed for a future release of LabVIEW. The best workaround at this point would be to create a dialog box as you have suggested. Please post back if you have any difficulty in implementing this workaround. Thank you very much for your time, and have a great day.

Mike D.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 3
(2,882 Views)