11-29-2023 05:57 AM
I am trying to add the file extension after the user selects the file name. Specifically, when the user clicks a button I would like to open a windows explorer where I enter the desired file name for my spreadsheet. After that I would like to add ".csv" programmatically. I can't seem to figure out how to do this.
I tried to convert the path to a string, add the ".csv" and the turn the string back to a path. When I add this before the "Write delimited spreadsheet" the program crashes (img1). When I add if after the program opens the windows dialog properly but ignores the ".csv" (img2).
I am new to this, any help is much appreciated.
Solved! Go to Solution.
11-29-2023 06:24 AM - edited 11-29-2023 06:30 AM
Hi,
Use the "File Dialog" Express VI (Advanced File Functions palette) with the appropriate pattern. This will automatically add the extension in case the user does not type it explicitly:
raphschru_0-1701260555559.png
P.S.: If you want to do it on an already chosen path (without the dialog box):
raphschru_0-1701260948800.png
Regards,
Raphaël.
11-29-2023 06:27 AM
Thank you so much. That was it.