>#Define c0 chr(0) > >lc_Filter = ' All Files (*.*)' + c0 + '*.*' + c0 + ; > ' Text Files(*.txt)' + c0 + '*.txt' + c0 + ; > ' Batch Files (*.bat)' + c0 + '*.bat' + c0 + ; > ' Bitmap Files (*.bmp, *.jpg)' + c0 + '*.bmp;*.jpg' + c0 + c0 >>
#DEFINE HTCDF_NOSELECTDIR 0x80000000 #define OFN_EXPLORER 0x00080000 // new look commdlg #Define c0 chr(0) lc_Filter = 'All Files (*.*)' + c0 + '*.*' + c0 + ; 'Text Files(*.txt)' + c0 + '*.txt' + c0 + ; 'Batch Files (*.bat)' + c0 + '*.bat' + c0 + ; 'Bitmap Files (*.bmp, *.jpg)' + c0 + '*.bmp;*.jpg' + c0 + c0 Declare String CD_GetFile in HTWindow ; String cStartDir, String cStrFilter, Long hWndParent, ; Long nPosition, Long nX, Long nY, ; Long uFlags, Long uFlagsEx, ; String cWndTitle, String cBtnCaption ?CD_GetFile("c:\MMVisCollect",lc_Filter,0,0,0,0,0,HTCDF_NOSELECTDIR, "Select file","Select")The directory has several subdirectories. If I open any of them, I can not any longer return back to the starting point. Not sure, if it was intended.