02-21-2010 05:47 AM
Hello.
I have a program that creates 2D array, of measurements.
Then, I want to give user an option to save it to a file.
So i chose LV function "write to spreadsheet file.vi"(maybe you can suggest other option).
Then, when it runs dialog opens to ask where to save the file. The file name empty, and file type is "All Files(*.*)". What I want is to set the file type to *.txt by default, so the user don't have to care about it.
How can i do it?
Thanks
Solved! Go to Solution.
02-21-2010 07:23 AM - edited 02-21-2010 07:24 AM
In this case, the user would not be allowed to choose the location of the save file, only the name of it (of course, you can ask the user for the location input too, but that would be quite risky and not very comfortable):
I bet there are better workarounds or maybe it is possible to set it up without any workarounds, just I don't know the method. Yet.
02-21-2010 07:56 AM
Another version:
Remember to use error clusters for the property nodes.
In this case, the .txt format will be default if the user will choose the path and to save the file or not before running the program. But it still shows the "All files" if the save dialogue is opened during the run-time.
02-21-2010 09:54 AM