I ran the example given in the HELP file to assist me with another issue. What I got was a very odd behavior.
The code is:
WINAPP
INCLUDE <windows.ins>
LOGICAL L,next
CHARACTER*256 filename,filter,defpath
filter = 'Free Fortran files (*.f90)'//char(0)//'*.f90'//char(0) &
//'All files (*.*)'//char(0)//'*.*'//char(0)//char(0)
defpath = char(0) !Gives the current working directory
L = .TRUE.
next = .FALSE.
DO WHILE(L)
filename = char(0)
L=GET_MULTIPLE_FILENAMES@(0,'Dialog Title',filename,256,filter,defpath,next)
next = .TRUE.
IF(L) PRINT*, trim(filename)
END DO
END
When run against my D: drive (and I've selected a few files), I get:
D:\\MISCSTMT001.FXS
D:\\msdia80.dll
D:\\Multiple transfer.psd
The doubled backslash should not be there. I have put a check in my code to prevent this for occurring.