Re: getOpenFileName()
- Posted by Pete Lomax <petelomax at blue?onde?.co.uk> Jan 22, 2008
- 545 views
don cole wrote: > Now a new problem had popped up. > }}} <eucode> > filename = getOpenFileName( > MainWin, > "H:\\", > {"Dialog Flags", {OFN_ALLOWMULTISELECT}, > "Rar Files", "*.RAR" , > "All Files", "*.*" } ) > </eucode> {{{ > It open in H: which is what I want but > now all files show up in the openDialog box not just the .rar files? > With my old code: > }}} <eucode> > filename=getOpenFileName(0,"", {"Dialog Flags", {OFN_ALLOWMULTISELECT}, > "Rar Files", "*.RAR" , > "All Files", "*.*" } ) > </eucode> {{{ > > only the .rar files showed up. Try this:
filename = getOpenFileName( MainWin, "H:\\.", {"Dialog Flags", {OFN_ALLOWMULTISELECT}, "Rar Files", "*.RAR" , "All Files", "*.*" } )
That extra little dot works a charm here (win98), dunno why tho. Regards, Pete