Re: getOpenFileName() Problem

new topic     » goto parent     » topic index » view thread      » older message » newer message
doncole2009 said...

... The c: folder opens but all files are shown. None filtered ...

The bug is in the buildDefaultOfn routine in w32file.ew

Find these lines in the routine

    -- Check to see if a directory name was supplied. 
    if   length(fName) > 0 
     and fName[length(fName)] = '\\'  then 
        fName &= "*.*" 
    end if 

and change them to

    -- Check to see if a directory name was supplied. 
    if   length(fName) > 0 
     and fName[length(fName)] = '\\'  then 
        if length(fName) = 3 and fName[2] = ':' then 
            fName &= ".\\." 
        else 
            fName &= "." 
        end if 
    end if 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu