LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dialog cancel error

when i m saving or opening my file .dialogbox appears,but if im canceling it,getting error,how can i get rid o this problem
and if user open file which is not created through my software ,how my sotware should prompt for that and let me know vi for that case,or is ter any way to appear only that files in dialog which are created through my software
0 Kudos
Message 1 of 2
(2,599 Views)
Since you don't mention what functions you're using, I'm going to assume that they're Write Characters to File or Write to Spreadsheet file and their associated read functions. Inside these functions is the General Error Handler that pops up a dialog when an error occurs. The Open/Create/Replace functions defines a cancel as error code 43. To remove the pop-up, modify the functions you're using and remove the general error handler. Save the modified VIs with a different name and to a new location. You can then do your own trapping of error code 43.

You can also modify these VIs so that you can provide an input to the pattern input of Open/Create/Replace. If your files have a unique extension, then you would at least limit the files displayed to the user to those with that extension.
Message 2 of 2
(2,589 Views)