10-24-2018 11:57 AM
Hi, I experimented using file path control including files and folders, new and existing; however, I am seeking a method to determine how to detect if the user pushes the cancel button. It appears to me there should be a logical value some where indicating status of "cancel" in path control. Thanks in Advance!
Solved! Go to Solution.
10-24-2018 12:04 PM - edited 10-24-2018 12:08 PM
As much as I hate Express vi's in this one application I will recommend using one.
The "File Dialog" express vi has an output that will be True if Canceled was pressed in the dialog box. Or you could always error check your path after the user enters it to make sure is it valid. ( It won't be if the user canceled it)
10-24-2018 12:25 PM
When the user browses to a file, that constitutes a Value Change event for the control.
When the user starts browsing, then cancels, the value is unchanged, so nothing happens.
If you really need such behavior, you can make an XControl.
10-24-2018 12:45 PM
Thanks, I was evaluating the result to determine what happened but just thought I might l be missing something. I like your event case approach.