The following code segment asks for the user to choose or create a folder. Choosing an existing folder works fine, but creating a folder with a new non-default name does the following when you click OK :
The folder is created with the name you typed in The program quits with no error/crash indication
If you just want a new folder created (default name), it works fine.
I'm not sure when this stopped working properly.
Running V8.40.0.
winapp
PROGRAM MAIN
use mswin
character*260:: returned_path=' '
integer:: uint=z'41'
integer(7):: window_handle=0
if(browse_for_folder1@(window_handle,'Caption',returned_path,uint)) then
print *,'Returned:',trim(returned_path)
else
print *,'Cancelled'
endif
end