BBC BASIC for Windows
« Selecting a file name from Browse »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 11:44pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Selecting a file name from Browse
« Thread started on: Jan 7th, 2010, 3:52pm »
Hello
I would like to know if there is a way for the user to select a file from browsing folders, and for the filename and path to be stored in a string (perhaps if that is suitable). Many thanks. Danny
Re: Selecting a file name from Browse
« Reply #1 on: Jan 7th, 2010, 4:13pm »
Quote:
I would like to know if there is a way for the user to select a file from browsing folders
Browsing for folders (using SHBrowseForFolder) is, as the name suggests, only for selecting a folder (directory). If you want to select a file (or group of files) then use GetOpenFileName (or GetSaveFileName), which are documented in the same place: