Post by dagnabitboy on Feb 19, 2020 13:07:32 GMT -5
I'm using the filedialog to write a file. I've specified the file dialog with folder and file type info (*.gcode), and I've preloaded the filename spec. Filedialog correctly opens the desired folder and fills in the file type, but the file name field only contains the desired extension (*.gcode). I was hoping I could specify the entire filename to be written, so the user could just click "save", but also have the option of editing the filename if desired. If this is the first time writing to this folder, then no files are shown in the filedialog, and even if other files are shown, they may not be the desired (suggested by the program) file name.
Does anyone have a work around for this? Thanks in advance!!
Post by dagnabitboy on Feb 19, 2020 13:49:10 GMT -5
Wow! Thanks for the quick reply!! I tried your sample code, which works perfect... but.. I guess I don't understand what I'm looking at!
I'm guessing Path$ and InFile$ are reserved keywords, but I'm not finding them in the 4.5.1 reference. Perhaps I just missed them. And I'm also not sure how the "v." comes into play. Dang. I feel like such a noob!
Would you mind expanding my limited knowledge a little! thanks!
Its quite straight forwards. You supply the preferred directory and file name in a template string. The response comes back as a string, in this case chosenpathfilename$. The user can change whatever they wish if they don't want the default you specified in the template$.