Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / compile poblem after using QOpendialog! why?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. compile poblem after using QOpendialog! why?
#1122
Posted by: qmark 2003-11-12 16:46:34
the following code does not compile any more after opening QOpendialog:

x=shell ("C:_ProjektIDErc.exe -vON -r -GUI -g C:_ProjektIDEide.ico " +filex,0)

could you help?
Message2. 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
Message3. Re: compile poblem after using QOpendialog! why?
#1124
Posted by: qmark 2003-11-13 19:52:29
thanx Jacques it works fine

what I'd done without our help


merci beaucoup
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-10-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0