>>>Hi,
>>>
>>>In the PUTFILE() dialog I want the user to see both XLS and XLSX files. The only way I could do it if I pass the following in the Extention parameter: "XLS*" (using asterisk wild card).
>>>
>>>But I read in VFP help that I should be able to specify two extensions as "XLS, XLSX" or "XLS| XLSX" or "XLS; XLSX" but none of these methods work.
>>>
>>>What am I missing?
>>
>>It looks like either a bug or misleading text in Help. Anyway, this works:
>>
>>
?Putfile('some text','','xls*')
>
>This is what I said works (see above). But how come when putting the extensions one after the other it does not work? This is what I am trying to figure out.
Both of these work:
?putfile("aa","", "abc;def")
?putfile("aa","", "abc|def")
But I don't see that there's a way to add a description unless it's one of registered types - for that you'd have to use common dialog object. But since both xls and xlsx are registered type, Putfile('some text','','xls;xlsx') should work and display the type description in the lower combo. Doesn't do that in my case because I don't have the Office installed on my fox box.