LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change the default File name for the DirSelectPopup?

I am using the DirSelectPopup function so that the user can select a directory for writing a file.  However, there is no parameter specifying which file shows up in the dialog box that is popped up.  I can see that the user may change the value, but is there a way for me to set a default file in that field?  Also can I make it so that the user cannot change the default file that I present?  I see that the FileSelectPopup has the capability to set a defaultFileSpec but I want the directory returned to me only and not the file.
Thanks,
Donna
0 Kudos
Message 1 of 2
(2,912 Views)

Donna,

I don't think that there is a way to do what you want with the DirSelectPopup, but as an alternative if you use the FileSelectPopup you can use the 'SplitPath' function (from the CVI utility library) right afterwards to get just the directory returned to you.  This would only be one or two (if you want the drive as well as the directory) extra lines of code extra and it would provide you with the functionality you are looking for. 

0 Kudos
Message 2 of 2
(2,898 Views)