11-08-2017 11:04 AM
Hi all,
Have programmed with event structure and while loop.
1. created a event for a button
2. when pressed it should read a file selected (I have not connected a path control)
When the button is pressed the particular folder pops up, from which user can select the file. But, instead of selecting the file, if the user clicks on cancel, the program instead of being on same front panel, proceeds to the next part of the code.
I want to program such that the user comes back to same front panel if he/she clicks on cancel during the file selection. How to program this?
Thanks in advance
Solved! Go to Solution.
11-08-2017 11:12 AM
@Deepa_Krishnamurthy wrote:
Hi all,
Have programmed with event structure and while loop.
1. created a event for a button
2. when pressed it should read a file selected (I have not connected a path control)
When the button is pressed the particular folder pops up, from which user can select the file. But, instead of selecting the file, if the user clicks on cancel, the program instead of being on same front panel, proceeds to the next part of the code.
I want to program such that the user comes back to same front panel if he/she clicks on cancel during the file selection. How to program this?
Thanks in advance
Your VI can't even catch the 43 error that is generated (or you would have mentioned it), so you have to read up on how to handle errors. That is the path to salvation. (Catch the error, do something about it.)
11-09-2017 03:43 AM
Thanks a lot!
11-09-2017 05:47 AM
Glad I was able to help. If you've noticed, we tend not make you work a bit for your solution. That's because this is a learning forum as well. I gave you the tools, but you made your own solution. 🙂
Good work!