LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Path control's browse cancel buton return value

How can I find out which button (especially cancel button) user had pressed?

 

 

 

 

Thanks for helping!

Have a very pleasant day!

Message Edited by C .DOT on 04-15-2009 07:17 PM
Download All
0 Kudos
Message 1 of 15
(4,094 Views)
As far as I know there isn't a way, other than seeing if the filepath has changed value. One workaround is to not display the browse button, and use your own button which calls the Windows API functions or the .NET file dialog functions which will tell you if the dialog was cancelled.
Message 2 of 15
(4,084 Views)

The LabVIEW "file dialog" function in the advanced pallette also provides this information, but you'll have to create your own button to accomplish this.

 

Maybe a product suggestion to expose this information in the event structure is in order.

Regards,
André (CLA, CLED)
Message 3 of 15
(4,082 Views)

andre.buurman@carya wrote:

The LabVIEW "file dialog" function


Oh yeah.... that Express (Saverio says this with indignation spewing from his lips) VI. Smiley Very Happy

Message 4 of 15
(4,077 Views)
Thanks for the insight!
0 Kudos
Message 5 of 15
(4,053 Views)
Thanks a lot andre.buu…! I think this is the suggestion I'll be working with.
0 Kudos
Message 6 of 15
(4,051 Views)

If you're using the "value change" event on the path control, the event will fire only if the user clicks the OK button (or double-clicks a file). It fires even if the path does not change if the user clicks OK.

The event does NOT fire if the user clicks Cancel.

 

Message Edited by dan_u on 04-16-2009 11:01 AM
Message 7 of 15
(4,046 Views)
Dear ! I think I don't understand the implications behind your comment. Would you kindly let me in on this "that Express" thing? (Looks like some inside laugh!).
0 Kudos
Message 8 of 15
(4,044 Views)

He's a member of the club "I don't like express VIs". So am I Smiley Wink

 

0 Kudos
Message 9 of 15
(4,040 Views)
I don't like Express VI's too, but there are some that are usefull, e.g. "File dialog" and "Time delay" (after displaying them as subVI and unchecking display caption).
Regards,
André (CLA, CLED)
0 Kudos
Message 10 of 15
(4,031 Views)