Re: getOpenFileName

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

The win32lib documentation for getOpenFileNameEx should have a fourth parameter extra.
Use this paramater to specify the initial filter index.

  filename = getOpenFileNameEx(  
              Window1,               -- parent window  
              "e:\\euphoria\\stocks\\",                       -- no default name  
              {  "Text Files", "*.TXT",    -- text files  
                 "Data Files","*.DAT",  
                 "All Files", "*.*" },    -- everything else  
              { {ofnFilterIndex,2} }  ) 

Yes Authur,

Your code does put 'Data Files' in the 'Files of type' ComboBox. But he Window still shows all files.

I want it to show only Data Files on open.

Don Cole

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu