LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows "Create File" popup?

Labwindows has a "Select FIle" popup dialog in which a user can select an existing file and in addition create a new folder. Is there a similar popup method which allows a user to create a new file at a specific location by navigating to it? Unless I'm not seeing something, it appears that one must create a custome dialog box to do this. Does anyone have any examples or comments?

Thanks,
Doug Wendelboe

0 Kudos
Message 1 of 4
(3,963 Views)
FileSelectPopup allows you to enter a new file name if the button label is "Ok": it does not create the file but allows you to enter a filename that does not actually exists in the selected directory. To actually create the filename you will need to use file utilities like fopen.
If the button lable is "Select" or "Save" you receive an error if you input a non existing filename.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,959 Views)
FileSelectPopup does allow the user to browse to a directory and then manually input the name of a nonexistent file. You just have to make sure you pass VAL_OK_BUTTON or VAL_SAVE_BUTTON for the button label parameter (as opposed to VAL_SELECT_BUTTON or VAL_LOAD_BUTTON). If you pass either of the latter, the dialog requires the user to specify an existing file.

This doesn't seem to be documented. I'll make sure that point gets added to the documentation.

Mert A.
National Instruments
0 Kudos
Message 3 of 4
(3,958 Views)
Thanks to both for your responses. They were what I was looking for.
Doug Wendelboe

0 Kudos
Message 4 of 4
(3,953 Views)