Steve Drake wrote:
>
> Hello, I am wondering how people control the file/directory dialog
> boxs. Recently a user started the vi and chose the Open menu
> (this is a custom menu) , but instead of picking a file he chose the
> cancel button with brought up an error message with two buttons,
> continue/stop. He chose stop and brought up the debug.
>
> Now I have been playing around with the file open vi's and tried to
> catch the error and just end but with no luck the error message keeps
> comming up on me.
>
> Could someone explain how they would handle this in LabView5.1.
Whether this is elegant, I doubt it, but what I do is I use the generic
(Advanced) "File Dialog" vi to pull in the file name instead of "Open
File" or whatever. FD has a "cancelled" output w
hich I wire to a T/F
Case (F), put my file operation vi inside it and whatever I want the
program to do in the case of a cancel in the (T) case (often nothing).
Cameron
--
Cameron Dorey
Associate Professor of Chemistry
University of Central Arkansas
Phone: 501-450-5938
camerond@mail.uca.edu