2. Re: compile poblem after using QOpendialog! why?
#1123
Posted by: 2003-11-13 18:46:44
QOpenDialog modifies the current directory :) a known bug Here is my QOpendialog Macro savin,g and restoring the current directory !
Dim OpenDialog AS QOpenDialog DefStr sOldDir OpenDialog.Filter = "Picture files|*.BMP;*.ICO|All Files|*.*" OpenDialog.FilterIndex = 2 '' Use "All Files" as our default sOldDir = CurDir$ OpenDialog.InitialDir = YourPath If OpenDialog.Execute Then ShowMessage "You selected " + OpenDialog.FileName End If ChDir sOldDir
3. Re: compile poblem after using QOpendialog! why?