LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control the file dialog box

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.

Thank you for any information you can give.

Regards,

Steve Drake
0 Kudos
Message 1 of 3
(2,491 Views)
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
0 Kudos
Message 2 of 3
(2,491 Views)
On Thu, 18 May 2000 10:45:04 -0500, Cameron Dorey
wrote:

Thanks that worked just great, I should have seen it.

Regards,

Steve Drake
0 Kudos
Message 3 of 3
(2,491 Views)